You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When writing linting rules which can possibly do a autofix/rewrite, it would be nice to have an option to run all linting rules to see what the errors were without doing a rewrite. And then run scalafix again to rewrite the linting errors which have an autofix.
For e.g: Let's say I want to write a linter rule which enforces javaconverters over java conversions. It would be good if it let the dev know other helpful information in linting message and an option to autofix it. currently we either do a check (--check flag) which prints patch to terminal (not pleasant) or automatic rewrite (with out --check flag)
Proposal
Add an option --dry-run (name upfor debate), which prints out only Patch.Lint messages to terminal without doing any rewrites and Optionally, letting users know there is a possibility of fixing few linting errors.
The text was updated successfully, but these errors were encountered:
Problem
When writing linting rules which can possibly do a autofix/rewrite, it would be nice to have an option to run all linting rules to see what the errors were without doing a rewrite. And then run scalafix again to rewrite the linting errors which have an autofix.
For e.g: Let's say I want to write a linter rule which enforces javaconverters over java conversions. It would be good if it let the dev know other helpful information in linting message and an option to autofix it. currently we either do a check (--check flag) which prints patch to terminal (not pleasant) or automatic rewrite (with out --check flag)
Proposal
Add an option
--dry-run
(name upfor debate), which prints out onlyPatch.Lint
messages to terminal without doing any rewrites and Optionally, letting users know there is a possibility of fixing few linting errors.The text was updated successfully, but these errors were encountered: