@@ -34,6 +34,7 @@ public struct Configuration: Codable, Equatable {
3434 case lineBreakBeforeControlFlowKeywords
3535 case lineBreakBeforeEachArgument
3636 case lineBreakBeforeEachGenericRequirement
37+ case lineBreakBetweenAttributes
3738 case prioritizeKeepingFunctionOutputTogether
3839 case indentConditionalCompilationBlocks
3940 case lineBreakAroundMultilineExpressionChainComponents
@@ -111,6 +112,9 @@ public struct Configuration: Codable, Equatable {
111112 /// horizontally first, with line breaks only being fired when the line length would be exceeded.
112113 public var lineBreakBeforeEachGenericRequirement : Bool
113114
115+ /// If true, a line break will be added between adjacent attributes.
116+ public var lineBreakBetweenAttributes : Bool
117+
114118 /// Determines if function-like declaration outputs should be prioritized to be together with the
115119 /// function signature right (closing) parenthesis.
116120 ///
@@ -243,6 +247,9 @@ public struct Configuration: Codable, Equatable {
243247 self . lineBreakBeforeEachGenericRequirement =
244248 try container. decodeIfPresent ( Bool . self, forKey: . lineBreakBeforeEachGenericRequirement)
245249 ?? defaults. lineBreakBeforeEachGenericRequirement
250+ self . lineBreakBetweenAttributes =
251+ try container. decodeIfPresent ( Bool . self, forKey: . lineBreakBetweenAttributes)
252+ ?? defaults. lineBreakBetweenAttributes
246253 self . prioritizeKeepingFunctionOutputTogether =
247254 try container. decodeIfPresent ( Bool . self, forKey: . prioritizeKeepingFunctionOutputTogether)
248255 ?? defaults. prioritizeKeepingFunctionOutputTogether
@@ -296,6 +303,7 @@ public struct Configuration: Codable, Equatable {
296303 try container. encode ( lineBreakBeforeEachGenericRequirement, forKey: . lineBreakBeforeEachGenericRequirement)
297304 try container. encode ( prioritizeKeepingFunctionOutputTogether, forKey: . prioritizeKeepingFunctionOutputTogether)
298305 try container. encode ( indentConditionalCompilationBlocks, forKey: . indentConditionalCompilationBlocks)
306+ try container. encode ( lineBreakBetweenAttributes, forKey: . lineBreakBetweenAttributes)
299307 try container. encode (
300308 lineBreakAroundMultilineExpressionChainComponents,
301309 forKey: . lineBreakAroundMultilineExpressionChainComponents)
0 commit comments