Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Allow user to autofix certain issues #140

Open
4 of 10 tasks
dar5hak opened this issue Aug 24, 2020 · 1 comment
Open
4 of 10 tasks

Feature: Allow user to autofix certain issues #140

dar5hak opened this issue Aug 24, 2020 · 1 comment

Comments

@dar5hak
Copy link
Contributor

dar5hak commented Aug 24, 2020

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:

  • block-opening-brace-space-before
  • double-semicolon
  • double-spaces
  • ellipsis
  • no-space
  • space-before-paren
  • use-of-tabs
  • trailing-newlines
  • trailing-whitespace
  • unnecessary-string-template

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
Copy link
Contributor Author

dar5hak commented Jan 12, 2021

I'm having a go at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant