diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..4c6bb5a --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,27 @@ +# Visit https://golangci-lint.run/ for usage documentation +# and information on other useful linters +issues: + max-per-linter: 0 + max-same-issues: 0 + +linters: + disable-all: true + enable: + - durationcheck + - errcheck + - exportloopref + - forcetypeassert + - godot + - gofmt + - gosimple + - ineffassign + - makezero + - misspell + - nilerr + - predeclared + - staticcheck + - tenv + - unconvert + - unparam + - unused + - vet diff --git a/internal/provider/datasources/example.go b/internal/provider/datasources/example.go index 355f340..1a64f91 100644 --- a/internal/provider/datasources/example.go +++ b/internal/provider/datasources/example.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/terraform-plugin-log/tflog" ) -// Ensure provider defined types fully satisfy framework interfaces +// Ensure provider defined types fully satisfy framework interfaces. var _ datasource.DataSource = &Example{} func NewExample() datasource.DataSource { diff --git a/internal/provider/resources/servicevcl/resource.go b/internal/provider/resources/servicevcl/resource.go index c8e8ac2..1ba5a80 100644 --- a/internal/provider/resources/servicevcl/resource.go +++ b/internal/provider/resources/servicevcl/resource.go @@ -13,6 +13,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-go/tftypes" "github.com/hashicorp/terraform-plugin-log/tflog" + "github.com/integralist/terraform-provider-fastly-framework/internal/helpers" "github.com/integralist/terraform-provider-fastly-framework/internal/provider/interfaces" "github.com/integralist/terraform-provider-fastly-framework/internal/provider/resources/domain" @@ -22,7 +23,7 @@ import ( //go:embed docs/service_vcl.md var resourceDescription string -// Ensure provider defined types fully satisfy framework interfaces +// Ensure provider defined types fully satisfy framework interfaces. // // https://pkg.go.dev/github.com/hashicorp/terraform-plugin-framework/resource#Resource // https://pkg.go.dev/github.com/hashicorp/terraform-plugin-framework/resource#ResourceWithConfigValidators