From 8345bb89a484a71164ddb92abb5719f92d63e320 Mon Sep 17 00:00:00 2001 From: Danny Moesch Date: Sat, 19 Sep 2020 16:46:20 +0200 Subject: [PATCH] Enable SwiftLint rule 'attributes' and configure it to agree with SwiftFormat --- .swiftlint.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.swiftlint.yml b/.swiftlint.yml index 55d8142..d8ee084 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -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