File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ opt_in_rules:
2929 - empty_string
3030 - closure_body_length
3131 - fallthrough
32+ - commented_out_code
3233
3334# force warnings
3435force_cast : error
@@ -39,7 +40,7 @@ custom_rules:
3940 included : " .*\\ .swift" # regex that defines paths to include during linting. optional.
4041 excluded : " .*Test(s)?\\ .swift" # regex that defines paths to exclude during linting. optional
4142 name : " Commented out code" # rule name. optional.
42- regex : " ^\\ / \\ / \\ s*(@| \\ .?([a-z]|( \\ })) )" # matching pattern
43+ regex : " ^\\ s*( \/\/ (?! \\ s*swiftlint:).*| \/\\ *[ \\ s \\ S]*? \\ * \/ )" # matching pattern
4344 capture_group : 0 # number of regex capture group to highlight the rule violation at. optional.
4445 match_kinds : # SyntaxKinds to match. optional.
4546 - comment
You can’t perform that action at this time.
0 commit comments