Skip to content
New issue

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

Can there be more verbose output from scalafmtCheckAll ? #86

Closed
paulkore opened this issue Feb 25, 2020 · 2 comments · Fixed by #188 or #193
Closed

Can there be more verbose output from scalafmtCheckAll ? #86

paulkore opened this issue Feb 25, 2020 · 2 comments · Fixed by #188 or #193
Labels
enhancement New feature or request

Comments

@paulkore
Copy link

Hello,

When running scalafmtCheckAll in sbt, the output is one warning per file:

[warn] .../MyClass.scala isn't formatted properly!
[warn] .../AnotherClass.scala isn't formatted properly!
[warn] .../SomeOtherClass.scala isn't formatted properly!

Is it currently possible to get more verbose output, including human-readable descriptions of each formatting issue?

For example, something like this:

[warn] .../MyClass.scala [48:1] Line is too long (maximum length is 160)
[warn] .../MyClass.scala [52:1] Line is too long (maximum length is 160)
[warn] .../AnotherClass.scala [135:28] Too many arguments in function call on a single line
[warn] .../SomeOtherClass.scala [88:5] Space is required after "if" keyword
...
@poslegm poslegm transferred this issue from scalameta/scalafmt Feb 25, 2020
@poslegm
Copy link
Collaborator

poslegm commented Feb 25, 2020

There is scalafmt --test command with verbose output in scalafmt-cli. sbt plugin has not this option now.

We can look at CLI implementation and do the same in the plugin.

@poslegm poslegm added the enhancement New feature or request label Feb 25, 2020
@paulkore
Copy link
Author

Thanks for the answer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants