Skip to content

Commit

Permalink
Add linter
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
  • Loading branch information
piotrpio committed Mar 22, 2024
1 parent cf5e710 commit 14d4760
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/macos.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ jobs:
uses: actions/checkout@v4
- name: Build
run: xcodebuild build -scheme Nats -destination generic/platform=ios
check-format:
check-linter:
runs-on: macos-13
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Install swift-format
run: brew install swift-format
- name: Run check
run: swift-format format -i -r Sources Tests
run: swift-format lint --configuration .swift-format -r Sources Tests
2 changes: 1 addition & 1 deletion .swift-format
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"prioritizeKeepingFunctionOutputTogether": true,
"respectsExistingLineBreaks": true,
"rules": {
"AllPublicDeclarationsHaveDocumentation": true,
"AllPublicDeclarationsHaveDocumentation": false,
"AlwaysUseLiteralForEmptyCollectionInit": false,
"AlwaysUseLowerCamelCase": true,
"AmbiguousTrailingClosureOverload": true,
Expand Down

0 comments on commit 14d4760

Please sign in to comment.