rust-peg icon indicating copy to clipboard operation
rust-peg copied to clipboard

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

Open csnover opened this issue 3 years ago • 0 comments

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?

csnover avatar Jan 31 '22 01:01 csnover