-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
false positiveAn error is reported when one does not existAn error is reported when one does not exist
Description
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 using golangci-lint
(that I can see at least) it seems like it might be a good idea to run structcheck with t
so it brings in the test files too.
Metadata
Metadata
Assignees
Labels
false positiveAn error is reported when one does not existAn error is reported when one does not exist