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

clippy::too_many_arguments lint triggers early due to hidden arguments and cannot be suppressed on the grammar/rule #288

Open
csnover opened this issue Jan 31, 2022 · 0 comments

Comments

@csnover
Copy link

csnover commented Jan 31, 2022

The peg macro currently only accepts a subset of attributes which means that it is not possible to suppress warnings in code generated by the macro without applying suppression to the entire enclosing module. I ran into this problem with clippy::too_many_arguments; 4 arguments divided between a grammar & a rule triggered that lint when it is configured using the default limit of 7.

I’m not exactly sure what the correct task here is. Add allow/warn/deny/forbid as valid attributes? Pass through all unknown attributes? Have peg disable this lint proactively? Maintain the status quo?

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