File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ excluded :
2
+ - Carthage
3
+ - Pods
4
+ - .build
5
+ - Build
6
+ - DerivedData
7
+
8
+ disabled_rules :
9
+ - type_name
10
+ - identifier_name
11
+ - line_length
12
+ - multiple_closures_with_trailing_closure
13
+ - todo
14
+
15
+ # force warnings
16
+ force_cast : error
17
+ force_try : error
18
+
19
+ custom_rules :
20
+ commented_out_code :
21
+ included : " .*\\ .swift" # regex that defines paths to include during linting. optional.
22
+ excluded : " .*Test(s)?\\ .swift" # regex that defines paths to exclude during linting. optional
23
+ name : " Commented out code" # rule name. optional.
24
+ regex : " ^\\ /\\ /\\ s*(@|\\ .?([a-z]|(\\ })))" # matching pattern
25
+ capture_group : 0 # number of regex capture group to highlight the rule violation at. optional.
26
+ match_kinds : # SyntaxKinds to match. optional.
27
+ - comment
28
+ message : " No commented code in devel branch allowed." # violation message. optional.
29
+ severity : warning # violation severity. optional.
30
+
31
+ force_unwrap : # rule identifier
32
+ included : " .*\\ .swift" # regex that defines paths to include during linting. optional.
33
+ excluded : " .*Test(s)?\\ .swift" # regex that defines paths to exclude during linting. optional
34
+ name : " Force unwrap function" # rule name. optional.
35
+ regex : " ([\\ }\\ )\\ w]!)" # matching pattern
36
+ capture_group : 0 # number of regex capture group to highlight the rule violation at. optional.
37
+ match_kinds : # SyntaxKinds to match. optional.
38
+ - identifier
39
+ message : " Please make it safe way, or disable this warning localy." # violation message. optional.
40
+ severity : error # violation severity. optional.
41
+
42
+
43
+
44
+
You can’t perform that action at this time.
0 commit comments