Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,15 @@ jobs:
- name: Install SwiftLint
run: brew install swiftlint

- name: Run SwiftLint with GitHub reporter
run: swiftlint lint --reporter github
- name: Run SwiftLint and save warnings/errors
run: |
swiftlint lint --config .swiftlint.yml --reporter json > swiftlint_report.json || true

- name: Upload SwiftLint report
uses: actions/upload-artifact@v4
with:
name: swiftlint-report
path: swiftlint_report.json

release:
if: startsWith(github.ref, 'refs/tags/v')
Expand Down
26 changes: 26 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
opt_in_rules:
- empty_count
- line_length
- nesting
- trailing_whitespace

disabled_rules:
- force_cast
- force_try
- legacy_constructor
- todo
- void_return

line_length:
warning: 120
error: 200

trailing_whitespace:
warning: true

empty_count:
warning: true

nesting:
warning: true

Loading