File tree Expand file tree Collapse file tree 4 files changed +79
-11
lines changed
Expand file tree Collapse file tree 4 files changed +79
-11
lines changed Original file line number Diff line number Diff line change 1+ name : lint-soft
2+ on :
3+ push :
4+ pull_request :
5+
6+ permissions :
7+ contents : read
8+ # Optional: allow read access to pull request. Use with `only-new-issues` option.
9+ pull-requests : read
10+
11+ jobs :
12+ golangci :
13+ name : lint-soft
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v2
17+ - name : golangci-lint
18+ uses : golangci/golangci-lint-action@v2
19+ with :
20+ # Optional: golangci-lint command line arguments.
21+ args : --config .golangci-soft.yml --issues-exit-code=0
22+ # Optional: show only new issues if it's a pull request. The default value is `false`.
23+ only-new-issues : true
Original file line number Diff line number Diff line change 33 push :
44 pull_request :
55
6+ permissions :
7+ contents : read
8+ # Optional: allow read access to pull request. Use with `only-new-issues` option.
9+ pull-requests : read
10+
611jobs :
712 golangci :
813 name : lint
1318 uses : golangci/golangci-lint-action@v2
1419 with :
1520 # Optional: golangci-lint command line arguments.
16- args : --issues-exit-code=0
17- # Optional: working directory, useful for monorepos
18- # working-directory: somedir
21+ # args:
1922 # Optional: show only new issues if it's a pull request. The default value is `false`.
2023 only-new-issues : true
Original file line number Diff line number Diff line change 1+ run :
2+ tests : false
3+
4+ issues :
5+ include :
6+ - EXC0001
7+ - EXC0005
8+ - EXC0011
9+ - EXC0012
10+ - EXC0013
11+
12+ max-issues-per-linter : 0
13+ max-same-issues : 0
14+
15+ linters :
16+ enable :
17+ # - dupl
18+ - exhaustive
19+ # - exhaustivestruct
20+ - goconst
21+ - godot
22+ - godox
23+ - gomnd
24+ - gomoddirectives
25+ - goprintffuncname
26+ - ifshort
27+ # - lll
28+ - misspell
29+ - nakedret
30+ - nestif
31+ - noctx
32+ - nolintlint
33+ - prealloc
34+ - wrapcheck
35+
36+ # disable default linters, they are already enabled in .golangci.yml
37+ disable :
38+ - deadcode
39+ - errcheck
40+ - gosimple
41+ - govet
42+ - ineffassign
43+ - staticcheck
44+ - structcheck
45+ - typecheck
46+ - unused
47+ - varcheck
Original file line number Diff line number Diff line change @@ -15,20 +15,15 @@ issues:
1515linters :
1616 enable :
1717 - bodyclose
18- - dupl
1918 - exportloopref
20- - goconst
21- - godot
22- - godox
2319 - goimports
24- - goprintffuncname
2520 - gosec
26- - ifshort
27- - misspell
28- - prealloc
21+ - nilerr
22+ - predeclared
2923 - revive
3024 - rowserrcheck
3125 - sqlclosecheck
26+ - tparallel
3227 - unconvert
3328 - unparam
3429 - whitespace
You can’t perform that action at this time.
0 commit comments