structcheck should probably have -t
set
#52
Labels
false positive
An error is reported when one does not exist
-t
set
#52
By default,
structcheck
does not load test files, so structs with fields that are only used for testing will fail. I'm not sure that's a great default as it leads to more false positives. As you can't modify arguments for specific linters usinggolangci-lint
(that I can see at least) it seems like it might be a good idea to run structcheck witht
so it brings in the test files too.The text was updated successfully, but these errors were encountered: