diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4c94b59..2652b0a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest env: GO_VERSION: 1.18 - GOLANGCI_LINT_VERSION: v1.48.0 + GOLANGCI_LINT_VERSION: v1.50.1 CGO_ENABLED: 0 steps: diff --git a/.golangci.yml b/.golangci.yml index f7ea63a..794d1f9 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -51,16 +51,19 @@ linters-settings: linters: enable-all: true disable: - - maligned # deprecated - - interfacer # deprecated + - deadcode # deprecated + - exhaustivestruct # deprecated - golint # deprecated - - scopelint # deprecated + - ifshort # deprecated + - interfacer # deprecated + - maligned # deprecated - nosnakecase # deprecated + - scopelint # deprecated - structcheck # deprecated - - exhaustivestruct # deprecated - - ifshort # deprecated + - varcheck # deprecated - sqlclosecheck # not relevant (SQL) - rowserrcheck # not relevant (SQL) + - execinquery # not relevant (SQL) - cyclop # duplicate of gocyclo - lll - dupl @@ -82,7 +85,9 @@ issues: exclude-use-default: false max-per-linter: 0 max-same-issues: 0 - exclude: [] + exclude: [ + 'package-comments: should have a package comment' + ] exclude-rules: - path: "(.+)_test.go" linters: