diff --git a/scripts/staticcheck.sh b/scripts/staticcheck.sh index 2dd08309a6..2ef394280f 100755 --- a/scripts/staticcheck.sh +++ b/scripts/staticcheck.sh @@ -12,5 +12,7 @@ packages=$(go list ./... | egrep -v ${skip}) # We are skipping style-related checks, since terraform intentionally breaks # some of these. The goal here is to find issues that reduce code clarity, or -# may result in bugs. -go run honnef.co/go/tools/cmd/staticcheck -checks 'all,-ST*' ${packages} +# may result in bugs. We also disable fucntion deprecation checks (SA1019) +# because our policy is to update deprecated calls locally while making other +# nearby changes, rather than to make cross-cutting changes to update them all. +go run honnef.co/go/tools/cmd/staticcheck -checks 'all,-SA1019,-ST*' ${packages}