Skip to content

Commit a1759df

Browse files
authored
Update .swiftlint.yml
1 parent c027115 commit a1759df

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Surf MVP Application.xctemplate/.swiftlint.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,13 @@ custom_rules:
124124
regex: "@IBAction func"
125125
message: "IBAction should be private or fileprivate"
126126
severity: error
127+
128+
mark_newlines:
129+
included: ".*.swift"
130+
name: "MARK newlines surrounding"
131+
regex: '(([}{)\w \t]+\n{1}[ \t]*)(\/\/ MARK: - [\w ]*))|((\/\/ MARK: - [\w ]*)(\n{1}[ \t]*\w+))'
132+
message: "Every MARK should be surrounded with 1 newline before and 1 after it"
133+
severity: warning
127134

128135
line_length: 120
129136

0 commit comments

Comments
 (0)