diff --git a/.github/workflows/swiftlint.yml b/.github/workflows/swiftlint.yml new file mode 100644 index 0000000..df8e5d0 --- /dev/null +++ b/.github/workflows/swiftlint.yml @@ -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/action-swiftlint@3.2.1 diff --git a/.swiftlint.yml b/.swiftlint.yml index 3dfa380..2a1c64e 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -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