diff --git a/Sources/Options.swift b/Sources/Options.swift index f3e1f8c9a..f19bec575 100644 --- a/Sources/Options.swift +++ b/Sources/Options.swift @@ -746,7 +746,7 @@ public struct FormatOptions: CustomStringConvertible { storedVarAttributes: AttributeMode = .preserve, computedVarAttributes: AttributeMode = .preserve, complexAttributes: AttributeMode = .preserve, - complexAttributesExceptions: Set = [], + complexAttributesExceptions: Set = ["@Environment"], markTypes: MarkMode = .always, typeMarkComment: String = "MARK: - %t", markExtensions: MarkMode = .always, diff --git a/Tests/RulesTests+Wrapping.swift b/Tests/RulesTests+Wrapping.swift index a867bf9b6..53fbddc9c 100644 --- a/Tests/RulesTests+Wrapping.swift +++ b/Tests/RulesTests+Wrapping.swift @@ -4741,7 +4741,7 @@ class WrappingTests: RulesTests { } } """ - let options = FormatOptions(varAttributes: .sameLine, storedVarAttributes: .sameLine, computedVarAttributes: .prevLine, complexAttributes: .prevLine, complexAttributesExceptions: ["@Environment"]) + let options = FormatOptions(varAttributes: .sameLine, storedVarAttributes: .sameLine, computedVarAttributes: .prevLine, complexAttributes: .prevLine) testFormatting(for: input, output, rule: FormatRules.wrapAttributes, options: options) } @@ -4781,7 +4781,7 @@ class WrappingTests: RulesTests { } """ - let options = FormatOptions(varAttributes: .sameLine, complexAttributes: .prevLine, complexAttributesExceptions: ["@Environment"]) + let options = FormatOptions(varAttributes: .sameLine, complexAttributes: .prevLine) testFormatting(for: input, rule: FormatRules.wrapAttributes, options: options) }