diff --git a/.golangci.yaml b/.golangci.yaml index 44cf9945..f7c829fd 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -1,8 +1,6 @@ run: build-tags: - testtools - skip-dirs: - - internal/models linters-settings: goimports: @@ -23,15 +21,15 @@ linters: # additional linters - bodyclose + - err113 - gocritic - gocyclo - - goerr113 - gofmt # - gofumpt - goimports - - gomnd - govet - misspell + - mnd - noctx - revive - stylecheck @@ -40,6 +38,8 @@ linters: # - bod issues: + exclude-dirs: + - internal/models exclude-rules: - path: (.+)_test.go linters: @@ -71,4 +71,4 @@ issues: - (Expect directory permissions to be 0750 or less|Expect file permissions to be 0600 or less) # EXC0010 gosec: False positive is triggered by 'src, err := ioutil.ReadFile(filename)' - Potential file inclusion via variable - exclude-use-default: false \ No newline at end of file + exclude-use-default: false diff --git a/Makefile b/Makefile index 08b9c270..8974ef8b 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ GCI_REPO = github.com/daixiang0/gci GCI_VERSION = v0.10.1 GOLANGCI_LINT_REPO = github.com/golangci/golangci-lint -GOLANGCI_LINT_VERSION = v1.57.2 +GOLANGCI_LINT_VERSION = v1.59.1 NATS_CLI_REPO = github.com/nats-io/natscli NATS_CLI_VERSION = v0.0.35