History

github/workflows: add swift linting

der richter committed 2 years ago

Commit cb75ecf1 parent 11289892 files · +17 −0Browse files

Unified · Split

2 files
  1. .github/workflows/lint.yml +7 −0
  2. .swiftlint.yml +10 −0
.github/workflows/lint.yml+7−0
@@ -20,3 +20,10 @@ jobs: · 19 unmodified lines
20 - name: Lint20 - name: Lint
21 run: |21 run: |
22 ./ci/lint-commit-msg.py22 ./ci/lint-commit-msg.py
23
24 swift-lint:
25 runs-on: ubuntu-latest
26 steps:
27 - uses: actions/checkout@v4
28
29 - uses: norio-nomura/action-swiftlint@3.2.1
.swiftlint.yml+10−0
@@ -0,0 +1,10 @@
1disabled_rules:
2 - identifier_name
3 - line_length
4 - large_tuple
5 - void_function_in_ternary
6 - function_body_length
7 - cyclomatic_complexity
8 - file_length
9 - type_body_length
10strict: true

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t