Skip to content

Commit

Permalink
🤖 Add swiftlint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucien committed Jul 8, 2024
1 parent fa56f88 commit f105023
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: SwiftLint

on:
pull_request:
paths:
- '.github/workflows/swiftlint.yml'
- '.swiftlint.yml'
- '**/*.swift'

jobs:
SwiftLint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: GitHub Action for SwiftLint
uses: norio-nomura/[email protected]
4 changes: 2 additions & 2 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ opt_in_rules: # some rules are only opt-in
- sorted_imports
- switch_case_on_newline
included: # paths to include during linting. `--path` is ignored if present.
- NadaADeclarar
- Sources
excluded: # paths to ignore during linting. Takes precedence over `included`.
- NadaADeclararTests
- Sources/NadaADeclararTests

# configurable rules can be customized from this configuration file
# binary rules can set their severity level
Expand Down

0 comments on commit f105023

Please sign in to comment.