Fix. Rule condition
This commit is contained in:
parent
4d5937aa8e
commit
993f7dfd2a
|
|
@ -91,6 +91,17 @@ custom_rules:
|
|||
spaces_around_braces:
|
||||
included: ".*.swift"
|
||||
name: "Spaces around the braces"
|
||||
regex: '(([A-Za-z0-9])[\{\}])|([\{\}](\S)([A-Za-z0-9]))'
|
||||
regex: '(([A-Za-z0-9])[\{\}])|([\{\}]([A-Za-z0-9]))'
|
||||
message: "No spaces around the braces"
|
||||
severity: error
|
||||
match_kinds:
|
||||
- attribute.builtin
|
||||
- attribute.id
|
||||
- buildconfig.id
|
||||
- buildconfig.keyword
|
||||
- identifier
|
||||
- keyword
|
||||
- objectliteral
|
||||
- parameter
|
||||
- placeholder
|
||||
- typeidentifier
|
||||
|
|
|
|||
Loading…
Reference in New Issue