From f7a37a7b57312736afd2a712ee54982c89fcdd04 Mon Sep 17 00:00:00 2001 From: Juan Calderon-Perez Date: Tue, 11 Jun 2024 09:07:01 -0400 Subject: [PATCH] Bump golangci-lint to v1.59.1 --- .github/workflows/linter.yml | 2 +- .golangci.yml | 9 +++------ Makefile | 2 +- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 70bdd27..543e473 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -40,4 +40,4 @@ jobs: uses: golangci/golangci-lint-action@v5 with: # NOTE: Keep this in sync with the version from .golangci.yml - version: v1.57.1 \ No newline at end of file + version: v1.59.1 \ No newline at end of file diff --git a/.golangci.yml b/.golangci.yml index 91566db..078e097 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,4 +1,4 @@ -# v1.2.0. Created based on golangci-lint v1.57.1 +# v1.2.0. Created based on golangci-lint v1.59.1 run: timeout: 5m @@ -238,11 +238,9 @@ linters-settings: time-layout: false # TODO: Set to true crypto-hash: true default-rpc-path: true - os-dev-null: true sql-isolation-level: true tls-signature-scheme: true constant-kind: true - syslog-priority: true wrapcheck: ignorePackageGlobs: @@ -258,7 +256,7 @@ issues: - internal # TODO: Do not ignore interal packages exclude-rules: - linters: - - goerr113 + - err113 text: 'do not define dynamic errors, use wrapped static errors instead*' - path: log/.*\.go linters: @@ -288,7 +286,6 @@ linters: - errchkjson - errname - errorlint - - execinquery - exhaustive # - exhaustivestruct # - exhaustruct @@ -308,7 +305,7 @@ linters: # - gocyclo # - godot # - godox - - goerr113 + - err113 - gofmt - gofumpt # - goheader diff --git a/Makefile b/Makefile index 212bb2d..4626a38 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ format: ## lint: 🚨 Run lint checks .PHONY: lint lint: - go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.57.1 run ./... + go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.59.1 run ./... ## test: 🚦 Execute all tests .PHONY: test