MarcoGorelli / cython-lint

Lint Cython files
MIT License
68 stars 11 forks source link

do not emit unused warning for variables named `unused*` #87

Closed dalcinl closed 8 months ago

dalcinl commented 8 months ago

Cython has its own warning for unused variables, which is enabled with -Wextra. However, the warning does not trigger if the variable is named _ or if the variable name starts with unused.

MarcoGorelli commented 8 months ago

thanks @dalcinl ! fancy adding a little test case?