@@ -36,7 +36,7 @@ public struct Configuration: Codable, Equatable {
36
36
37
37
private enum CodingKeys : CodingKey {
38
38
case version
39
- case allDisabled
39
+ case skipAll
40
40
case maximumBlankLines
41
41
case lineLength
42
42
case spacesBeforeEndOfLineComments
@@ -71,7 +71,7 @@ public struct Configuration: Codable, Equatable {
71
71
/// MARK: Common configuration
72
72
73
73
/// Is all formatting disbled?
74
- public var allDisabled = false
74
+ public var skipAll = false
75
75
76
76
/// The dictionary containing the rule names that we wish to run on. A rule is not used if it is
77
77
/// marked as `false`, or if it is missing from the dictionary.
@@ -278,7 +278,7 @@ public struct Configuration: Codable, Equatable {
278
278
public init ( contentsOf url: URL ) throws {
279
279
if url. lastPathComponent == Self . suppressionFileName {
280
280
var config = Configuration ( )
281
- config. allDisabled = true
281
+ config. skipAll = true
282
282
self = config
283
283
return
284
284
}
@@ -316,8 +316,8 @@ public struct Configuration: Codable, Equatable {
316
316
// default-initialized instance.
317
317
let defaults = Configuration ( )
318
318
319
- self . allDisabled =
320
- try container. decodeIfPresent ( Bool . self, forKey: . allDisabled )
319
+ self . skipAll =
320
+ try container. decodeIfPresent ( Bool . self, forKey: . skipAll )
321
321
?? false
322
322
self . maximumBlankLines =
323
323
try container. decodeIfPresent ( Int . self, forKey: . maximumBlankLines)
@@ -406,7 +406,7 @@ public struct Configuration: Codable, Equatable {
406
406
var container = encoder. container ( keyedBy: CodingKeys . self)
407
407
408
408
try container. encode ( version, forKey: . version)
409
- try container. encode ( allDisabled , forKey: . allDisabled )
409
+ try container. encode ( skipAll , forKey: . skipAll )
410
410
try container. encode ( maximumBlankLines, forKey: . maximumBlankLines)
411
411
try container. encode ( lineLength, forKey: . lineLength)
412
412
try container. encode ( spacesBeforeEndOfLineComments, forKey: . spacesBeforeEndOfLineComments)
0 commit comments