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
format --check
Version(s)
0.10.0
Describe the bug
When trying to check your sources for formatting with scala-cli --check it just formats your code.
scala-cli --check
To Reproduce
If you have some code like this
//> using scala "3.1.1" @main def Main(args: String*): Unit = throw new Exception
A format file like this
version = "3.3.3" runner.dialect = scala3
And you run scala-cli --check it just formats your code.
Expected behaviour I'd expect this to behave exactly like it does with scalafmt. For example on the same code when I try scalafmt cli I get:
❯ scalafmt --check --- a/Users/ckipp/Documents/scala-workspace/scala-cli-test/Main.scala +++ b/Users/ckipp/Documents/scala-workspace/scala-cli-test/Main.scala @@ -3,2 +3,2 @@ @main def Main(args: String*): Unit = - throw new Exception + throw new Exception error: --test failed
The output of scala-cli format --check should be the same.
scala-cli format --check
The text was updated successfully, but these errors were encountered:
--check is broken for Scala 2 and default scalafmt config - basically it is not implemented properly on our side.
--check
Sorry, something went wrong.
Ahh sorry I didn't realize this was a duplicate!
Do not worry, your report is much more detailed ;)
868e6b3
jchyb
No branches or pull requests
Version(s)
0.10.0
Describe the bug
When trying to check your sources for formatting with
scala-cli --check
it just formats your code.To Reproduce
If you have some code like this
A format file like this
And you run
scala-cli --check
it just formats your code.Expected behaviour
I'd expect this to behave exactly like it does with scalafmt. For example on the same code when I try scalafmt cli I get:
The output of
scala-cli format --check
should be the same.The text was updated successfully, but these errors were encountered: