mirror of
https://github.com/mpv-player/mpv
synced 2025-03-26 22:42:47 +01:00
github/workflows: add swift linting
This commit is contained in:
parent
1128989885
commit
cb75ecf19f
7
.github/workflows/lint.yml
vendored
7
.github/workflows/lint.yml
vendored
@ -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
|
||||
|
10
.swiftlint.yml
Normal file
10
.swiftlint.yml
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user