Skip to content

Commit

Permalink
ci: add golangci-lint configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
Integralist committed Oct 19, 2023
1 parent bcd654e commit db54f40
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion internal/provider/datasources/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion internal/provider/resources/servicevcl/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit db54f40

Please sign in to comment.