File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Lint
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - canary
7+
8+ permissions :
9+ contents : read
10+
11+ jobs :
12+ golangci-lint :
13+ name : golangci-lint
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout code
17+ uses : actions/checkout@v4
18+
19+ - name : Set up Go
20+ uses : actions/setup-go@v5
21+ with :
22+ go-version : ' 1.25.4'
23+
24+ - name : Run golangci-lint
25+ uses : golangci/golangci-lint-action@v7
26+ with :
27+ version : latest
Original file line number Diff line number Diff line change 1+ version : " 2"
2+
3+ linters :
4+ default : standard
5+ enable :
6+ - gocritic
7+ - revive
8+ - misspell
9+ - unconvert
10+ - unparam
11+ - errorlint
12+ settings :
13+ errcheck :
14+ check-type-assertions : true
15+ govet :
16+ enable-all : true
17+ disable :
18+ - fieldalignment
19+ gocritic :
20+ enabled-tags :
21+ - diagnostic
22+ - style
23+ - performance
24+ revive :
25+ rules :
26+ - name : blank-imports
27+ - name : exported
28+ - name : unreachable-code
29+ - name : unused-parameter
30+ exclusions :
31+ presets :
32+ - std-error-handling
33+ rules :
34+ - path : ' (.+)_test\.go'
35+ linters :
36+ - errcheck
37+ - text : ' unused-parameter'
38+ source : ' cobra\.Command'
You can’t perform that action at this time.
0 commit comments