Skip to content

Commit

Permalink
Address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ErisMik committed Jun 4, 2024
1 parent 6cda298 commit c58d966
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/swift-codestyle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Swift Codestyle

on:
workflow_dispatch:
push:
branches: [ master ]
paths:
- '**/*.swift'
pull_request:
branches: [ master, 'v[0-9]+.[0-9]+' ]
paths:
- '**/*.swift'

jobs:
check-switch-codestyle:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Check swift codestyle
uses: norio-nomura/[email protected]
with:
args: lint --config res/.lint/swift/.swiftlint.yml --strict
10 changes: 10 additions & 0 deletions res/.lint/swift/.swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
disabled_rules:
- identifier_name
- function_body_length
- force_cast
- implicit_getter
- cyclomatic_complexity
- function_parameter_count
excluded:
- ${PWD}/**/Pods
- ${PWD}/**/node_modules

0 comments on commit c58d966

Please sign in to comment.