-
Notifications
You must be signed in to change notification settings - Fork 205
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
ignore-names does not apply for all checks #43
Comments
I'd merge a pull request that implements this. I suspect the reasoning is that the implementor didn't want |
@sigmavirus24 Judging by the first comment in #19, the implementer submitted a partial WIP, intending to apply the logic to all error types. That said, I do agree with you that type-specific whitelists would be useful. So you'd like to continue supporting |
Another discussion point: how granular should the options be? Ideally, there should be an option to ignore a list of names for each error type. One way to do it:
Another approach entirely (similar to something suggested in the original PR) is to support
which would suppress all errors about What are your thoughts? |
We don't have a reverse mapping of violation code to checker class and I'd rather not build one or attempt to maintain it. Using explicitly named flags without using weird magical syntax makes the most sense. It's simple, explicit, and can be easily configured in INI. |
|
Unless I'm missing something, the
ignore
argument to the visitor methods is used only inFunctionNameCheck
(N802). Is this by design? Would be great to apply this option for all checks.The text was updated successfully, but these errors were encountered: