tests/provider: Fix and Enable errorlint Linter #15891
Labels
linter
Pertains to changes to or issues with the various linters.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
technical-debt
Addresses areas of the codebase that need refactoring or redesign.
tests
PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Community Note
Description
golangci-lint version 1.32.0 introduced the
errorlint
linter, which by its own description:It is a little more focused than the
goerr113
linter, which is also in golangci-lint but is problematic from our perspective due to:We do this regularly as this project is not intended to be used as a library.
The errorlint linter can be temporarily enabled with
golangci-lint run --enable errorlint ./aws
.Example Reports
Affected Resources
TBD
Definition of Done
golangci-lint run --enable errorlint ./aws
are addressederrorlint
added to.golangci.yml
The text was updated successfully, but these errors were encountered: