@@ -34,6 +34,7 @@ public struct Configuration: Codable, Equatable {
34
34
case lineBreakBeforeControlFlowKeywords
35
35
case lineBreakBeforeEachArgument
36
36
case lineBreakBeforeEachGenericRequirement
37
+ case lineBreakBetweenAttributes
37
38
case prioritizeKeepingFunctionOutputTogether
38
39
case indentConditionalCompilationBlocks
39
40
case lineBreakAroundMultilineExpressionChainComponents
@@ -111,6 +112,9 @@ public struct Configuration: Codable, Equatable {
111
112
/// horizontally first, with line breaks only being fired when the line length would be exceeded.
112
113
public var lineBreakBeforeEachGenericRequirement : Bool
113
114
115
+ /// If true, a line break will be added between adjacent attributes.
116
+ public var lineBreakBetweenAttributes : Bool
117
+
114
118
/// Determines if function-like declaration outputs should be prioritized to be together with the
115
119
/// function signature right (closing) parenthesis.
116
120
///
@@ -243,6 +247,9 @@ public struct Configuration: Codable, Equatable {
243
247
self . lineBreakBeforeEachGenericRequirement =
244
248
try container. decodeIfPresent ( Bool . self, forKey: . lineBreakBeforeEachGenericRequirement)
245
249
?? defaults. lineBreakBeforeEachGenericRequirement
250
+ self . lineBreakBetweenAttributes =
251
+ try container. decodeIfPresent ( Bool . self, forKey: . lineBreakBetweenAttributes)
252
+ ?? defaults. lineBreakBetweenAttributes
246
253
self . prioritizeKeepingFunctionOutputTogether =
247
254
try container. decodeIfPresent ( Bool . self, forKey: . prioritizeKeepingFunctionOutputTogether)
248
255
?? defaults. prioritizeKeepingFunctionOutputTogether
@@ -296,6 +303,7 @@ public struct Configuration: Codable, Equatable {
296
303
try container. encode ( lineBreakBeforeEachGenericRequirement, forKey: . lineBreakBeforeEachGenericRequirement)
297
304
try container. encode ( prioritizeKeepingFunctionOutputTogether, forKey: . prioritizeKeepingFunctionOutputTogether)
298
305
try container. encode ( indentConditionalCompilationBlocks, forKey: . indentConditionalCompilationBlocks)
306
+ try container. encode ( lineBreakBetweenAttributes, forKey: . lineBreakBetweenAttributes)
299
307
try container. encode (
300
308
lineBreakAroundMultilineExpressionChainComponents,
301
309
forKey: . lineBreakAroundMultilineExpressionChainComponents)
0 commit comments