9 ms·
As someone who worked on a similar tool (https://github.com/ssbr/refex/tree/main/refex/fix/fixers https://github.com/ssbr/refex/tree/main/refex/fix/fixers, I di
by joshuamorton 3y ago
As someone who worked on a similar tool (https://github.com/ssbr/refex/tree/main/refex/fix/fixers https://github.com/ssbr/refex/tree/main/refex/fix/fixers, I did a bunch of the work to prep this for open-sourcing, though I think all my contributions are hidden behind the "Google-internal" anonymization), having auto-applied or auto-appliable fixers like this is super useful.
They can be auto-applied by post-commit (e.g. a generic `git fixcommit` style command that runs all the relevant lint tools and fixes them in the working copy, letting you review before push), or applied during code review (automatic comments with a "click here to apply fix" interface), both of which are nice.
Plus the same underlying tooling can be used to write more complex one-off fixes that may be used for migrations or cleanups.