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
The --fix support in dart_style is older than the dart fix command. That command can now apply all of the fixes that dart format --fix can and many many more. It's redundant and confusing to have two ways to apply automated code clean-ups. And the implementations of the fixes in dart_style is kind of hacky and brittle. I believe there are cases where the resulting fixed code doesn't end up with the same formatting you'd get if you applied the fix separately.
Dart 3 gives us a chance to clean up our CLI user experience, so it's a great time to remove --fix from dart format and delete all of that crufty code. We can leave the options in there as hidden. If you pass any, instead of applying the fix, it will print a diagnostic telling you how to run dart fix.
The text was updated successfully, but these errors were encountered:
The
--fix
support in dart_style is older than thedart fix
command. That command can now apply all of the fixes thatdart format --fix
can and many many more. It's redundant and confusing to have two ways to apply automated code clean-ups. And the implementations of the fixes in dart_style is kind of hacky and brittle. I believe there are cases where the resulting fixed code doesn't end up with the same formatting you'd get if you applied the fix separately.Dart 3 gives us a chance to clean up our CLI user experience, so it's a great time to remove
--fix
fromdart format
and delete all of that crufty code. We can leave the options in there as hidden. If you pass any, instead of applying the fix, it will print a diagnostic telling you how to rundart fix
.The text was updated successfully, but these errors were encountered: