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

Support selecting and ignoring groups of codes #325

Closed
andersk opened this issue Oct 4, 2022 · 2 comments · Fixed by #493
Closed

Support selecting and ignoring groups of codes #325

andersk opened this issue Oct 4, 2022 · 2 comments · Fixed by #493

Comments

@andersk
Copy link
Contributor

andersk commented Oct 4, 2022

Flake8 supports options like

  • flake8 --ignore=E (ignore all E??? rules)
  • flake8 --select=E5 (enable all E5?? rules)
  • flake8 --select=E,E50 --ignore=E5,E501 (select all E??? rules, except E5?? which are ignored, except E50? which are selected, except E501 which is ignored)

It might be nice to support this or something similar.

@charliermarsh
Copy link
Member

Yeah that's nice. If implemented, we should try to retain the strict-checking nature of the CLI (such that we error if you provide --ignore=G, and no codes match G???).

@charliermarsh
Copy link
Member

I'm also wondering if there are other linters (even from other ecosystems) that do something more intuitive or ergonomic than the prefix-based selection.

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.

2 participants