The version of scalafmt to use for this project. Currently not used, the plan is to use this field for the IntelliJ+sbt integrations.
Column limit, any formatting exceeding this field is penalized heavily.
If LineEndings.unix, output will include only unix line endings If LineEndings.windows, output will include only windows line endings If LineEndings.preserve, output will include endings included in original file (windows if there was at least one windows line ending, unix if there was zero occurrences of windows line endings)
Map of tokens to rewrite. For example, Map("⇒" -> "=>") will rewrite unicode arrows to regular ascii arrows.
If true, indents yield
by two spaces
for (i <- j)
yield banana
If false, treats yield
like else
for (i <- j)
yield banana
Controls formatting of import selectors with multiple names from the
same package;
If org.scalafmt.config.ImportSelectors.binPack, import selectors are
arranged to fit within the maximum line width
If org.scalafmt.config.ImportSelectors.noBinPack, import selectors
are broken to one per line
If org.scalafmt.config.ImportSelectors.singleLine, import selectors
are kept on a single line
The default setting is currently noBinPack
.
If true, allows no indentation on infix operators in non-top-level functions. For example, function( a && b ) If false, only allows 0 space indentation for top-level statements a && b function( a && b ) Context: https://github.com/scala-js/scala-js/blob/master/CODINGSTYLE.md#long-expressions-with-binary-operators
NB: failure unless newlines.source=classic If true, includes curly brace applications in select chains/pipelines.
// If true List(1) .map { x => x + 2 } .filter(_ > 2) // If false List(1).map { x => x + 2 }.filter(_ > 2)
NB: ignored unless newlines.source=classic If true, includes applications without parens in select chains/pipelines.
// If true List(1) .toIterator .buffered .map(_ + 2) .filter(_ > 2) // If false List(1).toIterator.buffered .map(_ + 2) .filter(_ > 2)
If true, the margin character | is treated
as the new indentation in multiline strings
ending with .stripMargin
.
If true AND @binPackArguments is true AND @configStyleArguments is false, then this function( longerArg1, longerArg3) is formatted like this function( longerArg1, longerArg3 )
If org.scalafmt.config.TrailingCommas.always, trailing commas are added everywhere a newline is followed by a right parens, brace or bracket. If org.scalafmt.config.TrailingCommas.never, trailing commas are removed whenever they appear. If org.scalafmt.config.TrailingCommas.preserve, existing trailing commas will be preserved, and no new ones will be added.
If true, the margin character | is treated
as the new indentation in multiline strings
ending with .stripMargin
.
If true AND @binPackArguments is true AND @configStyleArguments is false, then this function( longerArg1, longerArg3) is formatted like this function( longerArg1, longerArg3 )
Controls formatting of import selectors with multiple names from the
same package;
If org.scalafmt.config.ImportSelectors.binPack, import selectors are
arranged to fit within the maximum line width
If org.scalafmt.config.ImportSelectors.noBinPack, import selectors
are broken to one per line
If org.scalafmt.config.ImportSelectors.singleLine, import selectors
are kept on a single line
The default setting is currently noBinPack
.
NB: failure unless newlines.source=classic If true, includes curly brace applications in select chains/pipelines.
NB: failure unless newlines.source=classic If true, includes curly brace applications in select chains/pipelines.
// If true List(1) .map { x => x + 2 } .filter(_ > 2) // If false List(1).map { x => x + 2 }.filter(_ > 2)
NB: ignored unless newlines.source=classic If true, includes applications without parens in select chains/pipelines.
NB: ignored unless newlines.source=classic If true, includes applications without parens in select chains/pipelines.
// If true List(1) .toIterator .buffered .map(_ + 2) .filter(_ > 2) // If false List(1).toIterator.buffered .map(_ + 2) .filter(_ > 2)
If true, indents yield
by two spaces
for (i <- j)
yield banana
If false, treats yield
like else
for (i <- j)
yield banana
If LineEndings.unix, output will include only unix line endings If LineEndings.windows, output will include only windows line endings If LineEndings.preserve, output will include endings included in original file (windows if there was at least one windows line ending, unix if there was zero occurrences of windows line endings)
Column limit, any formatting exceeding this field is penalized heavily.
Map of tokens to rewrite.
Map of tokens to rewrite. For example, Map("⇒" -> "=>") will rewrite unicode arrows to regular ascii arrows.
If org.scalafmt.config.TrailingCommas.always, trailing commas are added everywhere a newline is followed by a right parens, brace or bracket.
If org.scalafmt.config.TrailingCommas.always, trailing commas are added everywhere a newline is followed by a right parens, brace or bracket. If org.scalafmt.config.TrailingCommas.never, trailing commas are removed whenever they appear. If org.scalafmt.config.TrailingCommas.preserve, existing trailing commas will be preserved, and no new ones will be added.
If true, allows no indentation on infix operators in non-top-level functions.
If true, allows no indentation on infix operators in non-top-level functions. For example, function( a && b ) If false, only allows 0 space indentation for top-level statements a && b function( a && b ) Context: https://github.com/scala-js/scala-js/blob/master/CODINGSTYLE.md#long-expressions-with-binary-operators
The version of scalafmt to use for this project.
The version of scalafmt to use for this project. Currently not used, the plan is to use this field for the IntelliJ+sbt integrations.
Configuration options for scalafmt.
The version of scalafmt to use for this project. Currently not used, the plan is to use this field for the IntelliJ+sbt integrations.
Column limit, any formatting exceeding this field is penalized heavily.
If LineEndings.unix, output will include only unix line endings If LineEndings.windows, output will include only windows line endings If LineEndings.preserve, output will include endings included in original file (windows if there was at least one windows line ending, unix if there was zero occurrences of windows line endings)
Map of tokens to rewrite. For example, Map("⇒" -> "=>") will rewrite unicode arrows to regular ascii arrows.
If true, indents
yield
by two spaces for (i <- j) yield banana If false, treatsyield
likeelse
for (i <- j) yield bananaControls formatting of import selectors with multiple names from the same package; If org.scalafmt.config.ImportSelectors.binPack, import selectors are arranged to fit within the maximum line width If org.scalafmt.config.ImportSelectors.noBinPack, import selectors are broken to one per line If org.scalafmt.config.ImportSelectors.singleLine, import selectors are kept on a single line The default setting is currently
noBinPack
.If true, allows no indentation on infix operators in non-top-level functions. For example, function( a && b ) If false, only allows 0 space indentation for top-level statements a && b function( a && b ) Context: https://github.com/scala-js/scala-js/blob/master/CODINGSTYLE.md#long-expressions-with-binary-operators
NB: failure unless newlines.source=classic If true, includes curly brace applications in select chains/pipelines.
NB: ignored unless newlines.source=classic If true, includes applications without parens in select chains/pipelines.
If true, the margin character | is treated as the new indentation in multiline strings ending with
.stripMargin
.If true AND @binPackArguments is true AND @configStyleArguments is false, then this function( longerArg1, longerArg3) is formatted like this function( longerArg1, longerArg3 )
If org.scalafmt.config.TrailingCommas.always, trailing commas are added everywhere a newline is followed by a right parens, brace or bracket. If org.scalafmt.config.TrailingCommas.never, trailing commas are removed whenever they appear. If org.scalafmt.config.TrailingCommas.preserve, existing trailing commas will be preserved, and no new ones will be added.