mgechev / revive

🔥 ~6x faster, stricter, configurable, extensible, and beautiful drop-in replacement for golint
https://revive.run
MIT License
4.69k stars 273 forks source link

cleanup: rename unused parameters and receivers to _ #907

Closed mfederowicz closed 9 months ago

mfederowicz commented 9 months ago

PR related with #904

all unused functions parameters and receivers have been replaced with undersorce (_) sign to supress warnings. Maybe there is more elegant way to do this, but I dont want to remove parameters declaration

test command: revive -config ~/revive.toml -formatter stylish {test,rule,revivelib}

config:

ignoreGeneratedHeader = false
severity = "warning"
confidence = 0.8
errorCode = 0
warningCode = 0

[rule.unused-parameter]
[rule.unused-receiver]
chavacava commented 9 months ago

Thank you @mfederowicz !