From 21c8f5fa9c9898e2a8c6dc49540dec5a36546c2d Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Wed, 29 May 2024 06:03:00 +0200 Subject: [PATCH] chore: update linter --- .github/workflows/main.yml | 2 +- .golangci.yml | 17 ++++------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6776832..107e8cf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest env: GO_VERSION: stable - GOLANGCI_LINT_VERSION: v1.56.2 + GOLANGCI_LINT_VERSION: v1.59.0 SEIHON_VERSION: v0.9.0 CGO_ENABLED: 0 diff --git a/.golangci.yml b/.golangci.yml index 7fc48b8..871155f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -64,17 +64,8 @@ linters-settings: linters: enable-all: true disable: - - scopelint # deprecated - - interfacer # deprecated - - maligned # deprecated - - golint # deprecated - - exhaustivestruct # deprecated - - scopelint # deprecated - - varcheck # deprecated - - structcheck # deprecated - - nosnakecase # deprecated - - deadcode # deprecated - - ifshort # deprecated + - gomnd # deprecated + - execinquery # deprecated - sqlclosecheck # not relevant (SQL) - rowserrcheck # not relevant (SQL) - cyclop # duplicate of gocyclo @@ -83,11 +74,11 @@ linters: - prealloc - wsl - nlreturn - - gomnd + - mnd - testpackage - paralleltest - tparallel - - goerr113 + - err113 - wrapcheck - exhaustive - exhaustruct