From 80eb049c34772a813b341a2ef9d05939abd315b7 Mon Sep 17 00:00:00 2001 From: Mike Mason Date: Wed, 7 Aug 2024 13:58:22 -0500 Subject: [PATCH] update golangci-lint to v1.59.1 (#266) Updates golangci-lint to v1.59.1 along with it's config file. Signed-off-by: Mike Mason --- .golangci.yaml | 10 +++++----- Makefile | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) 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