scala-cli
scala-cli copied to clipboard
Support `--check` for built-in rules in the `fix` sub-command
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
Somewhat-related discussion about unifying the 2 backends behind fix: https://github.com/VirtusLab/scala-cli/pull/3400#issuecomment-2628524125