Skip to content

Commit

Permalink
fix: lint settings
Browse files Browse the repository at this point in the history
  • Loading branch information
amalucelli committed Oct 26, 2023
1 parent 438c927 commit e0e3df9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ linters-settings:
# tfproviderlint covers the errcheck.
- (*github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.ResourceData).Set
depguard:
list-type: 'denylist'
packages-with-error-message:
- 'github.com/pkg/errors': 'the github.com/pkg/errors is deprecated, use stdlib instead'
rules:
main:
deny:
- pkg: "github.com/pkg/errors"
desc: "the github.com/pkg/errors is deprecated, use stdlib instead"
1 change: 1 addition & 0 deletions nextdns/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func Provider() *schema.Provider {
}
}

// nolint:revive
func configure(ctx context.Context, d *schema.ResourceData) (interface{}, diag.Diagnostics) {
client, err := nextdns.New(
nextdns.WithAPIKey(d.Get("api_key").(string)))
Expand Down

0 comments on commit e0e3df9

Please sign in to comment.