mirror of
https://github.com/hashicorp/terraform.git
synced 2026-02-03 20:50:59 -05:00
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.
7 lines
442 B
Text
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*"]
|