Enable SwiftLint rule 'attributes' and configure it to agree with SwiftFormat
This commit is contained in:
parent
10ca4c06d7
commit
8345bb89a4
1 changed files with 3 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ excluded:
|
||||||
whitelist_rules:
|
whitelist_rules:
|
||||||
- anyobject_protocol
|
- anyobject_protocol
|
||||||
- array_init
|
- array_init
|
||||||
# - attributes # Contradicts with SwiftFormat option 'funcattributes = prev-line'.
|
- attributes
|
||||||
- block_based_kvo
|
- block_based_kvo
|
||||||
- class_delegate_protocol
|
- class_delegate_protocol
|
||||||
- closing_brace
|
- closing_brace
|
||||||
|
|
@ -207,6 +207,8 @@ whitelist_rules:
|
||||||
|
|
||||||
## Configuration for specific rules
|
## Configuration for specific rules
|
||||||
|
|
||||||
|
attributes:
|
||||||
|
always_on_same_line: []
|
||||||
closure_body_length:
|
closure_body_length:
|
||||||
warning: 40
|
warning: 40
|
||||||
error: 60
|
error: 60
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue