diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index ab15752..a91a750 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -141,8 +141,8 @@ jobs: - name: Run golangci-lint uses: golangci/golangci-lint-action@v6.1.1 with: - version: v1.55.2 - skip-pkg-cache: true + version: v1.62.2 + skip-cache: true - name: Coveralls uses: shogo82148/actions-goveralls@v1 diff --git a/.golangci.yml b/.golangci.yml index d7a5e5f..bfbff43 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,15 +1,24 @@ +issues: + exclude-case-sensitive: false + exclude-dirs-use-default: true + exclude-files: + - .*_mock\.go + - mock_.*\.go + - .*/pkg/mod/.*$ + - .*/go/src/.*\.go + exclude-generated: strict + exclude-use-default: true + max-issues-per-linter: 50 linters: disable-all: true enable: - errcheck - - gas - goconst - gocyclo - gofmt - revive - govet - ineffassign - - megacheck - misspell - typecheck - unconvert @@ -22,7 +31,6 @@ linters: - durationcheck - errorlint - exhaustive - - exportloopref - forbidigo - forcetypeassert - gocritic @@ -60,9 +68,8 @@ linters-settings: goimports: local-prefixes: go.opentelemetry.io govet: - check-shadowing: false - maligned: - suggest-new: true + disable: + - shadow misspell: ignore-words: - cancelled @@ -71,15 +78,12 @@ linters-settings: ignore-generated-header: true severity: warning output: - format: colored-line-number + formats: + - format: colored-line-number print-issued-lines: true print-linter-name: true run: concurrency: 4 issues-exit-code: 1 - skip-files: - - .*_mock\.go - - mock_.*\.go - - .*/pkg/mod/.*$ tests: false timeout: 1m