Closed finalchild closed 2 months ago
version = 3.8.2 runner.dialect = scala3 preset = default rewrite.trailingCommas.style = "always"
When I run scalafmt via CLI like this: scalafmt filename.scala
scalafmt filename.scala
Given code like this:
f( if true then 0 else ggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg , )
repeat running scalafmt
Scalafmt formats code like this:
f( if true then 0 else ggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg, )
and run it again, rolls back to original
Calls should be idempotent
Not omitting braces
See also...
Configuration (required)
Command-line parameters (required)
When I run scalafmt via CLI like this:
scalafmt filename.scala
Steps
Given code like this:
repeat running scalafmt
Problem
Scalafmt formats code like this:
and run it again, rolls back to original
Expectation
Calls should be idempotent
Workaround
Not omitting braces
Notes
See also...