terraform/staticcheck.conf
Nick Fagerlund af441abeda
Add staticcheck.conf to reduce unactionable noise in IDEs (#34036)
Since we already specify a list of staticcheck rules to ignore in the
scripts/staticcheck.sh wrapper script, this hoists those preferences up to the
top of the package tree, so they also affect the staticcheck integration in
editors like VSCode. This avoids unnecessary yellow-squiggles for capitalized
error messages, and makes integrated linting much more useful.
2023-10-12 11:01:12 -07:00

7 lines
442 B
Text

# Our goal in using staticcheck is to find issues that reduce code clarity, or
# may result in bugs. We are skipping style-related checks, since terraform
# intentionally breaks some of these. We also disable function 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.
checks = ["all", "-SA1019", "-ST*"]