From cd16576a1f2539ad898c1da2c10210f1e3b92b9c Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Wed, 27 Jul 2022 22:00:35 +0200 Subject: [PATCH] chore: update linter --- .github/workflows/main.yml | 2 +- .golangci.yml | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4657be6..c22aa1e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest env: GO_VERSION: 1.17 - GOLANGCI_LINT_VERSION: v1.44.0 + GOLANGCI_LINT_VERSION: v1.47.2 SEIHON_VERSION: v0.9.0 CGO_ENABLED: 0 diff --git a/.golangci.yml b/.golangci.yml index 21d1708..ba3c23e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -61,6 +61,7 @@ linters: - interfacer # deprecated - maligned # deprecated - scopelint # deprecated + - exhaustivestruct # deprecated - sqlclosecheck # not relevant (SQL) - rowserrcheck # not relevant (SQL) - cyclop # duplicate of gocyclo @@ -78,7 +79,7 @@ linters: - goerr113 - wrapcheck - exhaustive - - exhaustivestruct + - exhaustruct - ifshort - varnamelen - nilnil @@ -94,3 +95,6 @@ issues: linters: - gochecknoglobals - gochecknoinits + - path: "(.+)_test.go" + linters: + - nosnakecase