forked from hashicorp/terraform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add staticcheck.conf to reduce unactionable noise in IDEs (hashicorp#…
…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.
1 parent
24ac539
commit af441ab
Showing
2 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# 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*"] |