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

Remove filtering of linters when using --autocorrect #145

Closed
bensheldon opened this issue Jan 8, 2020 · 0 comments · Fixed by #246
Closed

Remove filtering of linters when using --autocorrect #145

bensheldon opened this issue Jan 8, 2020 · 0 comments · Fixed by #246

Comments

@bensheldon
Copy link

I'd like to have a single command that will both run all of the enabled linters configured in my .erb-lint.yml and autocorrect the linters that support autocorrect.

Currently it seems like using the --autocorrect flag filters down the linters to only run linters that are autocorrectable and non-correctable linters do not run.

I tried some workarounds, for example, running --autocorrect --enable-all-linters will run all the linters, but won't respect the linters I've disabled in my .erb-lint.yml file.

Ideally, I would like the --autocorrect flag to only trigger autocorrection, and otherwise respect the configuration I have within my .erb-lint.yml for enabled/disabled cops.

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

Successfully merging a pull request may close this issue.

1 participant