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