vala-lang / vala-lint

Check code-style of Vala code files
GNU General Public License v2.0
96 stars 15 forks source link

Feature: Allow user to autofix certain issues #140

Open dar5hak opened 4 years ago

dar5hak commented 4 years ago

If it falls into the scope of vala-lint, it would be convenient to be able to autofix issues for which exactly one fix exists, possibly with a --fix flag.

A rudimentary list of such rules would be:

Another addition could be --fix-dry-run, which prints the fixed code to stdout instead of writing to the file system.

Prior art: ESLint

dar5hak commented 3 years ago

I'm having a go at this.