Skip to content

Commit

Permalink
ScalafmtConfig: rename continuationIndent->indent
Browse files Browse the repository at this point in the history
Don't use ExtraName as that will not take effect if other sections are
moved to within `indent`.
  • Loading branch information
kitbellew committed Jan 16, 2025
1 parent 940a57e commit fdbdfb2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ import metaconfig._
@annotation.SectionRename("trailingCommas", "rewrite.trailingCommas.style") // v3.0.5
@annotation.SectionRename("poorMansTrailingCommasInConfigStyle", "newlines.configStyle.beforeComma") // v3.8.4
@annotation.SectionRename("optIn.forceBlankLineBeforeDocstring", "docstrings.forceBlankLineBefore") // v3.4.0
@annotation.SectionRename("indentOperator", "indent.infix") // v3.8.4
@annotation.SectionRename("verticalAlignMultilineOperators", "indent.infix", IndentOperator.boolToAssign) // v3.8.4
@annotation.SectionRename("indentYieldKeyword", "indent.yieldKeyword") // v3.8.4
@annotation.SectionRename("rewriteTokens", "rewrite.tokens") // v3.8.4
@annotation.SectionRename("importSelectors", "binPack.importSelectors") // v3.8.4
@annotation.SectionRename("binPackImportSelectors", "binPack.importSelectors") // v3.8.4
Expand All @@ -100,14 +97,18 @@ import metaconfig._
// annotations
@annotation.SectionRename("optIn.annotationNewlines", "newlines.annotation") // v3.8.4
@annotation.SectionRename("optIn.selfAnnotationNewline", "newlines.selfAnnotation") // v3.8.4
// indent
@annotation.SectionRename("continuationIndent", "indent") // v3.8.5
@annotation.SectionRename("indentOperator", "indent.infix") // v3.8.4
@annotation.SectionRename("verticalAlignMultilineOperators", "indent.infix", IndentOperator.boolToAssign) // v3.8.4
@annotation.SectionRename("indentYieldKeyword", "indent.yieldKeyword") // v3.8.4
// scalafmt: { maxColumn = 80 }
case class ScalafmtConfig(
version: String = org.scalafmt.Versions.stable,
maxColumn: Int = 80,
docstrings: Docstrings = Docstrings(),
comments: Comments = Comments(),
binPack: BinPack = BinPack(),
@annotation.ExtraName("continuationIndent")
indent: Indents = Indents(),
align: Align = Align(),
spaces: Spaces = Spaces(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4082,6 +4082,6 @@ final case class Appends(
) extends Batch_4_1_0
>>>
final case class Appends(
offset: Offset,
records: NonEmptyList[ActionRecord[Action.Append]]
offset: Offset,
records: NonEmptyList[ActionRecord[Action.Append]]
) extends Batch_4_1_0

0 comments on commit fdbdfb2

Please sign in to comment.