@@ -28,7 +28,7 @@ public struct Configuration: Codable, Equatable {
28
28
case version
29
29
case maximumBlankLines
30
30
case lineLength
31
- case spacesBeforeLineComments
31
+ case spacesBeforeEndOfLineComments
32
32
case tabWidth
33
33
case indentation
34
34
case respectsExistingLineBreaks
@@ -68,7 +68,7 @@ public struct Configuration: Codable, Equatable {
68
68
public var lineLength : Int
69
69
70
70
// Number of spaces that preceeds line comments.
71
- public var spacesBeforeLineComments : Int
71
+ public var spacesBeforeEndOfLineComments : Int
72
72
73
73
/// The width of the horizontal tab in spaces.
74
74
///
@@ -229,9 +229,9 @@ public struct Configuration: Codable, Equatable {
229
229
self . lineLength =
230
230
try container. decodeIfPresent ( Int . self, forKey: . lineLength)
231
231
?? defaults. lineLength
232
- self . spacesBeforeLineComments =
233
- try container. decodeIfPresent ( Int . self, forKey: . spacesBeforeLineComments )
234
- ?? defaults. spacesBeforeLineComments
232
+ self . spacesBeforeEndOfLineComments =
233
+ try container. decodeIfPresent ( Int . self, forKey: . spacesBeforeEndOfLineComments )
234
+ ?? defaults. spacesBeforeEndOfLineComments
235
235
self . tabWidth =
236
236
try container. decodeIfPresent ( Int . self, forKey: . tabWidth)
237
237
?? defaults. tabWidth
@@ -295,7 +295,7 @@ public struct Configuration: Codable, Equatable {
295
295
try container. encode ( version, forKey: . version)
296
296
try container. encode ( maximumBlankLines, forKey: . maximumBlankLines)
297
297
try container. encode ( lineLength, forKey: . lineLength)
298
- try container. encode ( spacesBeforeLineComments , forKey: . spacesBeforeLineComments )
298
+ try container. encode ( spacesBeforeEndOfLineComments , forKey: . spacesBeforeEndOfLineComments )
299
299
try container. encode ( tabWidth, forKey: . tabWidth)
300
300
try container. encode ( indentation, forKey: . indentation)
301
301
try container. encode ( respectsExistingLineBreaks, forKey: . respectsExistingLineBreaks)
0 commit comments