diff --git a/internal/reflect/helpers_test.go b/internal/reflect/helpers_test.go index fcd9ee9be..c26389652 100644 --- a/internal/reflect/helpers_test.go +++ b/internal/reflect/helpers_test.go @@ -21,7 +21,7 @@ type ExampleStruct struct { BoolField bool `tfsdk:"bool_field"` IgnoreMe string `tfsdk:"-"` - unexported string //nolint:structcheck,unused + unexported string //nolint:unused unexportedAndTagged string `tfsdk:"unexported_and_tagged"` } @@ -136,7 +136,7 @@ func TestGetStructTags(t *testing.T) { ExampleStruct Field5 string `tfsdk:"field5"` - unexported string //nolint:structcheck,unused + unexported string //nolint:unused unexportedAndTagged string `tfsdk:"unexported_and_tagged"` }{}, expectedTags: map[string][]int{ @@ -193,7 +193,7 @@ func TestGetStructTags(t *testing.T) { *ExampleStruct Field5 string `tfsdk:"field5"` - unexported string //nolint:structcheck,unused + unexported string //nolint:unused unexportedAndTagged string `tfsdk:"unexported_and_tagged"` }{}, expectedTags: map[string][]int{ diff --git a/internal/reflect/struct_test.go b/internal/reflect/struct_test.go index fb382a180..491c725af 100644 --- a/internal/reflect/struct_test.go +++ b/internal/reflect/struct_test.go @@ -809,7 +809,7 @@ func TestNewStruct_structtags_ignores(t *testing.T) { var s struct { ExportedAndTagged string `tfsdk:"exported_and_tagged"` - unexported string //nolint:structcheck,unused + unexported string //nolint:unused unexportedAndTagged string `tfsdk:"unexported_and_tagged"` ExportedAndExcluded string `tfsdk:"-"` } @@ -850,13 +850,13 @@ func TestNewStruct_embedded_structtags_ignores(t *testing.T) { type s1 struct { ExportedAndTagged string `tfsdk:"exported_and_tagged"` - unexported string //nolint:structcheck,unused + unexported string //nolint:unused unexportedAndTagged string `tfsdk:"unexported_and_tagged"` ExportedAndExcluded string `tfsdk:"-"` } type s2 struct { - unexportedField string //nolint:structcheck,unused + unexportedField string //nolint:unused } var s struct { @@ -2149,7 +2149,7 @@ func TestFromStruct_structtags_ignores(t *testing.T) { type s struct { ExportedAndTagged string `tfsdk:"exported_and_tagged"` - unexported string //nolint:structcheck,unused + unexported string //nolint:unused unexportedAndTagged string `tfsdk:"unexported_and_tagged"` ExportedAndExcluded string `tfsdk:"-"` } @@ -2188,13 +2188,13 @@ func TestFromStruct_embedded_structtags_ignores(t *testing.T) { type s1 struct { ExportedAndTagged string `tfsdk:"exported_and_tagged"` - unexported string //nolint:structcheck,unused + unexported string //nolint:unused unexportedAndTagged string `tfsdk:"unexported_and_tagged"` ExportedAndExcluded string `tfsdk:"-"` } type s2 struct { - unexportedField string //nolint:structcheck,unused + unexportedField string //nolint:unused } type s struct {