scala-cli icon indicating copy to clipboard operation
scala-cli copied to clipboard

Support `--check` for built-in rules in the `fix` sub-command

Open Gedochao opened this issue 11 months ago • 1 comments

Scala CLI version https://github.com/VirtusLab/scala-cli/commit/94a6e37359fb15e6046c9a7e866e6ef37fb6fc05

Is your feature request related to a problem? Please describe. Currently the --check flag is only supported for scalafix rules, and ignored by built-in rules. The flag should fail the command if any changes are required to be done by fix, rather than implement them.

Describe the solution you'd like --check should be supported by all rules in fix, rather than just scalafix

Gedochao avatar Jan 15 '25 11:01 Gedochao

Somewhat-related discussion about unifying the 2 backends behind fix: https://github.com/VirtusLab/scala-cli/pull/3400#issuecomment-2628524125

bjaglin avatar Jan 31 '25 22:01 bjaglin