Skip to content

Commit d37280f

Browse files
fix: swiftlint configuration file
1 parent 705704c commit d37280f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.swiftlint.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ disabled_rules:
1010
- identifier_name
1111
- line_length
1212
- multiple_closures_with_trailing_closure
13-
- todo
13+
- todo
14+
- function_parameter_count
15+
- nesting
1416

1517
opt_in_rules:
1618
- weak_delegate
@@ -34,12 +36,12 @@ force_try: error
3436

3537
custom_rules:
3638
commented_out_code:
37-
included: ".*\\.swift" # regex that defines paths to include during linting. optional.
38-
excluded: ".*Test(s)?\\.swift" # regex that defines paths to exclude during linting. optional
39-
name: "Commented out code" # rule name. optional.
40-
regex: "^\\/\\/\\s*(@|\\.?([a-z]|(\\})))" # matching pattern
39+
included: .*\.swift # regex that defines paths to include during linting. optional.
40+
excluded: .*Test(s)?\.swift # regex that defines paths to exclude during linting. optional
41+
name: Commented out code # rule name. optional.
42+
regex: ^\s*(\/\/(?!\s*swiftlint:).*|\/\*[\s\S]*?\*\/) # matching pattern
4143
capture_group: 0 # number of regex capture group to highlight the rule violation at. optional.
4244
match_kinds: # SyntaxKinds to match. optional.
4345
- comment
44-
message: "No commented code in devel branch allowed." # violation message. optional.
46+
message: No commented code in devel branch allowed. # violation message. optional.
4547
severity: warning # violation severity. optional.

0 commit comments

Comments
 (0)