From 1de505f61579388d0ea9483a9bec78a1915ec52e Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Wed, 26 Jan 2022 14:32:08 +0100 Subject: [PATCH] chore: update linter --- .github/workflows/main.yml | 2 +- .golangci.yml | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 704b52e..e0d6916 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest env: GO_VERSION: 1.17 - GOLANGCI_LINT_VERSION: v1.43.0 + GOLANGCI_LINT_VERSION: v1.44.0 SEIHON_VERSION: v0.9.0 CGO_ENABLED: 0 diff --git a/.golangci.yml b/.golangci.yml index a0776b3..21d1708 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -4,11 +4,11 @@ run: linters-settings: govet: - check-shadowing: true + enable-all: true + disable: + - fieldalignment gocyclo: min-complexity: 12 - maligned: - suggest-new: true goconst: min-len: 3 min-occurrences: 3 @@ -17,10 +17,13 @@ linters-settings: gofumpt: extra-rules: true depguard: - list-type: blacklist + list-type: denylist include-go-root: false packages: - github.com/pkg/errors + funlen: + lines: -1 + statements: 40 godox: keywords: - FIXME @@ -55,9 +58,9 @@ linters: enable-all: true disable: - golint # deprecated - - scopelint # deprecated - interfacer # deprecated - maligned # deprecated + - scopelint # deprecated - sqlclosecheck # not relevant (SQL) - rowserrcheck # not relevant (SQL) - cyclop # duplicate of gocyclo