Skip to content

Commit b2adb9e

Browse files
authored
golangci-lint: exclude ResourceData.Set (#652)
The common case when using this method is to ignore the error return. This is because the Terraform test framework checks these errors for primitive types for us.
1 parent 520a4e2 commit b2adb9e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.golangci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
linters-settings:
2+
errcheck:
3+
exclude: errcheck_excludes.txt

errcheck_excludes.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(*github.com/hashicorp/terraform-plugin-sdk/helper/schema.ResourceData).Set

0 commit comments

Comments
 (0)