We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please paste the contents of your .scalafmt.conf file here:
.scalafmt.conf
version = 3.7.12 runner.dialect = scala212 maxColumn = 120
When I run scalafmt via CLI like this: coursier launch scalafmt
coursier launch scalafmt
Given code like this:
val logger = mock[Logger] logger.warn(any) shouldDoNothing()
Scalafmt formats code like this:
val logger = mock[Logger] logger.warn(any) shouldDoNothing () // Note the extra space after `shouldDoNothing`
I would like the formatted output to look like this:
–
Note that shouldDoNothing is an arity-0 macro provided by Mockito Scala:
shouldDoNothing
def shouldDoNothing(): Unit = macro DoSomethingMacro.doesNothing
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
spaces.beforeXxxArgInParens
Successfully merging a pull request may close this issue.
Configuration (required)
Please paste the contents of your
.scalafmt.conf
file here:Command-line parameters (required)
When I run scalafmt via CLI like this:
coursier launch scalafmt
Steps
Given code like this:
Problem
Scalafmt formats code like this:
Expectation
I would like the formatted output to look like this:
Workaround
–
Notes
Note that
shouldDoNothing
is an arity-0 macro provided by Mockito Scala:The text was updated successfully, but these errors were encountered: