crystal-ameba / ameba

A static code analysis tool for Crystal
https://crystal-ameba.github.io
MIT License
518 stars 38 forks source link

`Naming/BlockParameterName` with ignored names #457

Closed jwoertink closed 1 week ago

jwoertink commented 6 months ago

Related: https://github.com/crystal-ameba/ameba/issues/453

I have a block parameter that starts with _ indicating that this value is ignored, but since it still has a single letter, Ameba picks it up as a name that shouldn't be used

image

Maybe for this option, if the block parameter starts with _ then Ameba could ignore it regardless of what it's called?

veelenga commented 6 months ago

Yes, it can be definitely ignored