Closed OscarVanL closed 2 years ago
golangci-lint 1.43.0 contains varnamelen 0.3.0, which does not support the -ignoreDecls
flag yet.
Thanks! I hope golangci-lint updates soon :)
varnamelen 0.5.0 should be in the next update, but I can't say when that will be released.
My linter is giving me varnamelen warnings for my REST endpoint handler functions which I want to ignore.
My varnamelen config looks like this:
I've had the same problem for other packages too. It seems none of my ignore-decls rules get used. My workaround so far has just been to add the letter to
ignore-names
, but this is far from ideal.Here's my golangci-lint version:
I've tried each
ignore-decls
rule individually just incase one broken rule caused them to all fail.Any ideas why these rules aren't working?