mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-19 17:59:05 -05:00
Tune .golangci.yml and fix small lint
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
This commit is contained in:
@@ -5,6 +5,11 @@
|
||||
|
||||
version: "2"
|
||||
linters:
|
||||
settings:
|
||||
staticcheck:
|
||||
# For now, we will disable some static checks to match golang-ci-lint@v1 functionality.
|
||||
# These should be addressed once the --new-from-rev work is taken care of.
|
||||
checks: ["all", "-QF1008", "-ST1003", "-ST1005", "-ST1012", "-ST1016"]
|
||||
exclusions:
|
||||
generated: lax
|
||||
presets:
|
||||
@@ -20,13 +25,7 @@ linters:
|
||||
- ^internal/ipaddr/
|
||||
- ^internal/legacy/
|
||||
- ^internal/states/statefile/version\d+_upgrade\.go$
|
||||
- third_party$
|
||||
- builtin$
|
||||
- examples$
|
||||
- ^website/
|
||||
formatters:
|
||||
exclusions:
|
||||
generated: lax
|
||||
paths:
|
||||
- third_party$
|
||||
- builtin$
|
||||
- examples$
|
||||
|
||||
@@ -9,11 +9,11 @@ import (
|
||||
"crypto/md5"
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"github.com/lib/pq"
|
||||
"hash/fnv"
|
||||
|
||||
"github.com/lib/pq"
|
||||
|
||||
uuid "github.com/hashicorp/go-uuid"
|
||||
_ "github.com/lib/pq"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user