File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 41
41
codespell # See .codespellrc for args
42
42
- name : SwiftLint
43
43
run : |
44
- # Adding --fix flag makes CI print only errors that cannot be fixed automatically
45
- swiftlint --fix
44
+ # 1. Make all automated fixes that are possible
45
+ # 2. git diff to see what (if any) automated fixes were made
46
+ # 3. See https://github.com/realm/SwiftLint#xcode explains why the double run
47
+ swiftlint --fix --quiet && git diff && swiftlint --quiet
46
48
- name : Resolve dependencies
47
49
run : swift package resolve
48
50
- name : Build
Original file line number Diff line number Diff line change @@ -60,10 +60,6 @@ opt_in_rules:
60
60
- unneeded_parentheses_in_closure_argument
61
61
- weak_delegate
62
62
63
- # force warnings
64
- force_cast : error
65
- force_try : error
66
-
67
63
custom_rules :
68
64
commented_out_code :
69
65
included : .*\.swift # regex that defines paths to include during linting. optional.
You can’t perform that action at this time.
0 commit comments