You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating to scalafmt 3.8.3, we started to observe strange behavior: when you have at least one import and then // format: off, each run of scalafmtAll command adds a new line before // format: off. I tried to add another import statement instead of scaladoc block - but it still added a new line.
Expectation
No adding a new line after each run of formatting.
Workaround
Remove // format: off before scaladoc block, but we would like to still have it formatted in our way.
The text was updated successfully, but these errors were encountered:
Configuration (required)
Command-line parameters (required)
When I run scalafmt via CLI like this:
scalafmtAll
or run format command in IntelliJ IdeaSteps
Given code like this:
Problem
After updating to
scalafmt
3.8.3, we started to observe strange behavior: when you have at least one import and then// format: off
, each run ofscalafmtAll
command adds a new line before// format: off
. I tried to add another import statement instead of scaladoc block - but it still added a new line.Expectation
No adding a new line after each run of formatting.
Workaround
Remove
// format: off
before scaladoc block, but we would like to still have it formatted in our way.The text was updated successfully, but these errors were encountered: