Home > Back-end >  Dart fix by issue type
Dart fix by issue type

Time:09-17

the following command , applies all changes in bulk

dart fix --apply

How can I tell dart fix only fix specific issue? i.e only fix all Prefer const with constant constructors.

CodePudding user response:

Unfortunately dart fix as only 2 commands as of now (15th Sept 2021)

dart fix --dry-run //To preview changes

and

dart fix --apply //To apply the changes

For more info see this GitHub readme.

  • Related