Enable SwiftLint rule 'attributes' and configure it to agree with SwiftFormat

This commit is contained in:
Danny Moesch 2020-09-19 16:46:20 +02:00 committed by Mingshen Sun
parent 10ca4c06d7
commit 8345bb89a4

View file

@ -12,7 +12,7 @@ excluded:
whitelist_rules:
- anyobject_protocol
- array_init
# - attributes # Contradicts with SwiftFormat option 'funcattributes = prev-line'.
- attributes
- block_based_kvo
- class_delegate_protocol
- closing_brace
@ -207,6 +207,8 @@ whitelist_rules:
## Configuration for specific rules
attributes:
always_on_same_line: []
closure_body_length:
warning: 40
error: 60