3rf / codecoroner

tool for detecting unused functions and variables in Go source code
http://kyleerf.com
141 stars 22 forks source link

False positive: ignore unsued variables defined as function arguments #21

Open dolmen opened 6 years ago

dolmen commented 6 years ago

Unused variables defined in the signature of a function should not be flagged as unused because those variables names are helpful as documentation even if not referenced in the function body.