From f10502323dabc1a2aba43a881fd23796cbe5a22f Mon Sep 17 00:00:00 2001 From: Lucien Doellinger Date: Sun, 7 Jul 2024 22:16:25 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Add=20swiftlint=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/swiftlint.yml | 16 ++++++++++++++++ .swiftlint.yml | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/swiftlint.yml 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