Skip to content

Commit

Permalink
Update golangci-lint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaspence committed Nov 22, 2024
1 parent 2a9f165 commit 5f4b54c
Show file tree
Hide file tree
Showing 12 changed files with 101 additions and 42 deletions.
32 changes: 15 additions & 17 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
---
linters:
disable-all: true
enable:
- "gofmt"
- "gosimple"
- "govet"
- "ineffassign"
- "makezero"
- "misspell"
- "nakedret"
- "nilerr"
- "staticcheck"
- "structcheck"
- "unconvert"
- "unused"

run:
timeout: '5m'
enable-all: true
disable:
# Temporary
#- 'depguard'
#- 'gomoddirectives'
#- 'nosnakecase'
#- 'paralleltest'
#- 'persprintf'
#- 'thelper'
#- 'varnamelen'
#- 'wrapcheck'
#- 'wsl'

# Deprecated
- 'exportloopref'
3 changes: 2 additions & 1 deletion internal/provider/data_account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package provider

import (
"fmt"
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
"testing"

"github.com/hashicorp/terraform-plugin-testing/helper/resource"
)

func TestAccDataAccount_default(t *testing.T) {
Expand Down
4 changes: 1 addition & 3 deletions internal/provider/data_user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ func TestAccDataUser_default(t *testing.T) {

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() {
//preCheck(t)

_, err := testClient.CreateUser(context.Background(), "default", &unifi.User{
MAC: mac,
Name: "tfacc-User-Data",
Expand All @@ -26,7 +24,7 @@ func TestAccDataUser_default(t *testing.T) {
t.Fatal(err)
}
},
//PreCheck: func() { preCheck(t) },
// PreCheck: func() { preCheck(t) },
ProviderFactories: providerFactories,
Steps: []resource.TestStep{
{
Expand Down
Loading

0 comments on commit 5f4b54c

Please sign in to comment.