Skip to content

Commit 06491f5

Browse files
authored
Merge pull request #725 from woocommerce/fix/lint-whitespace-rule
Lint config updated for vertical_whitespace
2 parents 8efad18 + fea82f2 commit 06491f5

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.swiftlint.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ whitelist_rules:
9999
# TODOs and FIXMEs should be avoided.
100100
# - todo
101101

102+
# Limit vertical whitespace to a three empty lines (rule configuration is below)
103+
- vertical_whitespace
104+
102105
# Files should have a single trailing newline.
103106
- trailing_newline
104107

@@ -129,8 +132,12 @@ whitelist_rules:
129132

130133
# Rules configuration
131134

132-
control_statement:
133-
severity: error
135+
vertical_whitespace:
136+
max_empty_lines: 3
137+
severity: error
138+
139+
control_statement:
140+
severity: error
134141

135142
custom_rules:
136143

0 commit comments

Comments
 (0)