From cb75ecf19f28cfa00ecd348da13bca2550e85963 Mon Sep 17 00:00:00 2001 From: der richter Date: Sat, 27 Apr 2024 22:02:23 +0200 Subject: [PATCH] github/workflows: add swift linting --- .github/workflows/lint.yml | 7 +++++++ .swiftlint.yml | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 .swiftlint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4a881c26aa..4751cb3d20 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,3 +20,10 @@ jobs: - name: Lint run: | ./ci/lint-commit-msg.py + + swift-lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: norio-nomura/action-swiftlint@3.2.1 diff --git a/.swiftlint.yml b/.swiftlint.yml new file mode 100644 index 0000000000..f059a34e1c --- /dev/null +++ b/.swiftlint.yml @@ -0,0 +1,10 @@ +disabled_rules: + - identifier_name + - line_length + - large_tuple + - void_function_in_ternary + - function_body_length + - cyclomatic_complexity + - file_length + - type_body_length +strict: true