Skip to content

Commit ab7c383

Browse files
committed
update swiftlint.yml
1 parent b3001e3 commit ab7c383

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

SwiftLint/swiftlint.yml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -153,17 +153,9 @@ custom_rules:
153153
- comment
154154
- doccomment
155155
- doccomment.field
156-
comments_capitalized_ignore_possible_code:
157-
name: "Capitalize First Word In Comment"
158-
regex: '(// +(?!swiftlint)[a-z]+)'
159-
message: "The first word of a comment should be capitalized"
160-
severity: warning
161-
match_kinds:
162-
- comment
163-
- doccomment
164156
empty_first_line:
165157
name: "Empty First Line"
166-
regex: '(extension|class) (?!(?:func|let|var))[^\{]*\{[^\n]*\n[\t ]*\w+'
158+
regex: '(extension|class|struct) (?!(?:func|let|var))[^\{]*\{[^\n]*\n[\t ]*\w+'
167159
message: "There should be an empty line after a class or extension declaration."
168160
severity: warning
169161
match_kinds:
@@ -212,11 +204,6 @@ custom_rules:
212204
regex: '(^ *if \(((?!( is | > | < | (=|!|<|>)= )).)*\) \{)'
213205
message: "if should contain == true or == false"
214206
severity: warning
215-
single_line_body:
216-
name: "Single Line Body"
217-
regex: '(?i-sm)((if|while|do|for)*? \{(?!\n|.?(s|g)et).+?\}\n)'
218-
message: "Single line bodies are not allowed"
219-
severity: warning
220207
missing_closure_datatype:
221208
name: "Missing Closure Data Type"
222209
regex: '(\{[\s]{1}(\[weak [\w]+?\][\s]{1})*?\([^:]+?\)[\s]{1}in)'

0 commit comments

Comments
 (0)