mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 08:15:24 +00:00
Add SwiftLint rule to enforce stack spacing. (#2080)
Xcode 15 changes the default behaviour and given we're always working from designs, we shouldn't rely on it for our layout.
This commit is contained in:
@@ -49,6 +49,18 @@ nesting:
|
||||
warning: 5
|
||||
|
||||
custom_rules:
|
||||
vstack_spacing:
|
||||
regex: "(?-s)VStack((?!spacing:).)*\\s*\\{"
|
||||
match_kinds: identifier
|
||||
message: "Please use explicit spacing in VStacks."
|
||||
severity: warning
|
||||
|
||||
hstack_spacing:
|
||||
regex: "(?-s)HStack((?!spacing:).)*\\s*\\{"
|
||||
match_kinds: identifier
|
||||
message: "Please use explicit spacing in HStacks."
|
||||
severity: warning
|
||||
|
||||
print_deprecation:
|
||||
regex: "\\b(print)\\b"
|
||||
match_kinds: identifier
|
||||
|
||||
Reference in New Issue
Block a user