dart-code-metrics icon indicating copy to clipboard operation
dart-code-metrics copied to clipboard

[Feature request] cli command to fix all

Open LogicNg opened this issue 3 years ago • 3 comments

Hi all,

First off, I would like to say that this package is awesome. Thanks for all the effort you guys put in. It would be nice if we can further automate the process. For example, when I enable dart-code-checker in a large project, I have to go through each warning and click the auto-fix button, this is driving me crazy.

I'm aware that fix all on save is currently impossible. As a workaround, can we make an CLI command to fix all warnings?

LogicNg avatar Jun 29 '22 03:06 LogicNg

@LogicNg hi, thank you! As for auto-fix, it is already in progress, hope it'll be ready in the next major release, but no exact date yet.

incendial avatar Jul 05 '22 12:07 incendial

@incendial Glad to hear that!

LogicNg avatar Jul 09 '22 04:07 LogicNg

Waiting eagerly for this solution! I have to go through a 1000 prefer-comma-trailing fixes manually now so hopefully there's some news about this CLI feature before I get it down to zero 😆

BrutalCoding avatar Aug 03 '22 07:08 BrutalCoding

The command to fix issues is now available as part of Teams version https://dcm.dev/docs/cli/fix/

incendial avatar Feb 08 '23 09:02 incendial