From 08d34f8054b384c6de2bb6681f91997e9855b458 Mon Sep 17 00:00:00 2001 From: Daniel Eze <73743252+dan-codes1@users.noreply.github.com> Date: Fri, 29 Nov 2024 16:49:32 -0700 Subject: [PATCH 1/2] Create swiftlint.yml --- .github/workflows/swiftlint.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) 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..6933227 --- /dev/null +++ b/.github/workflows/swiftlint.yml @@ -0,0 +1,30 @@ +# This workflow will build a Swift project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift + +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 + - name: GitHub Action for SwiftLint with --strict + uses: norio-nomura/action-swiftlint@3.2.1 + with: + args: --strict + - name: GitHub Action for SwiftLint (Only files changed in the PR) + uses: norio-nomura/action-swiftlint@3.2.1 + env: + DIFF_BASE: ${{ github.base_ref }} + - name: GitHub Action for SwiftLint (Different working directory) + uses: norio-nomura/action-swiftlint@3.2.1 + env: + WORKING_DIRECTORY: Source From d6812540d7cc1b1f8a2cb494add304c320cd67d5 Mon Sep 17 00:00:00 2001 From: Daniel Eze <73743252+dan-codes1@users.noreply.github.com> Date: Fri, 29 Nov 2024 15:53:34 -0800 Subject: [PATCH 2/2] added .swiftlintyml --- .swiftlint.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .swiftlint.yml diff --git a/.swiftlint.yml b/.swiftlint.yml new file mode 100644 index 0000000..f33757f --- /dev/null +++ b/.swiftlint.yml @@ -0,0 +1,24 @@ +disabled_rules: + - function_parameter_count + - file_length + - function_body_length + - identifier_name + - type_body_length + - todo + - line_length + - nesting + - cyclomatic_complexity + - type_name + - no_space_in_method_call + - redundant_optional_initialization + - blanket_disable_command +opt_in_rules: + - closure_spacing + - sorted_imports +excluded: + - Pods + - Carthage + - Tools + - Scripts + - fastlane + - generated