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

Adding ability to choose certain codes to error on (instead of disabling all using --exit-zero) or not error on #3782

Closed
JSpenced opened this issue Mar 28, 2023 · 3 comments

Comments

@JSpenced
Copy link

This is more a feature request or maybe I missed something in the docs to enable it.

From what I see, currently, I have --exit-zero in our pre-commit file, but we would like it to output all linting errors that we have included. Then only error on certain ones in the pre-commit. I know something similar is possible using fixable and unfixable, but not for which codes to error on or not.

Does this feature seem useful and possibly will be implemented in the future?

@charliermarsh
Copy link
Member

Yeah I think this could in theory be tackled by adding "severities" (so that users can differentiate errors from warnings), so I'm gonna close in favor of #1256.

@JSpenced
Copy link
Author

Yup 💯 ! Thanks for the link.

@charliermarsh
Copy link
Member

Any time :) Links are easy, it's changes that take work 😂

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

2 participants