@@ -28,7 +28,7 @@ public struct Configuration: Codable, Equatable {
2828 case version
2929 case maximumBlankLines
3030 case lineLength
31- case spacesBeforeLineComments
31+ case spacesBeforeEndOfLineComments
3232 case tabWidth
3333 case indentation
3434 case respectsExistingLineBreaks
@@ -68,7 +68,7 @@ public struct Configuration: Codable, Equatable {
6868 public var lineLength : Int
6969
7070 // Number of spaces that preceeds line comments.
71- public var spacesBeforeLineComments : Int
71+ public var spacesBeforeEndOfLineComments : Int
7272
7373 /// The width of the horizontal tab in spaces.
7474 ///
@@ -229,9 +229,9 @@ public struct Configuration: Codable, Equatable {
229229 self . lineLength =
230230 try container. decodeIfPresent ( Int . self, forKey: . lineLength)
231231 ?? 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
235235 self . tabWidth =
236236 try container. decodeIfPresent ( Int . self, forKey: . tabWidth)
237237 ?? defaults. tabWidth
@@ -295,7 +295,7 @@ public struct Configuration: Codable, Equatable {
295295 try container. encode ( version, forKey: . version)
296296 try container. encode ( maximumBlankLines, forKey: . maximumBlankLines)
297297 try container. encode ( lineLength, forKey: . lineLength)
298- try container. encode ( spacesBeforeLineComments , forKey: . spacesBeforeLineComments )
298+ try container. encode ( spacesBeforeEndOfLineComments , forKey: . spacesBeforeEndOfLineComments )
299299 try container. encode ( tabWidth, forKey: . tabWidth)
300300 try container. encode ( indentation, forKey: . indentation)
301301 try container. encode ( respectsExistingLineBreaks, forKey: . respectsExistingLineBreaks)
0 commit comments