File tree Expand file tree Collapse file tree 4 files changed +87
-10
lines changed Expand file tree Collapse file tree 4 files changed +87
-10
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 3
3
push :
4
4
pull_request :
5
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
+
6
11
jobs :
7
12
golangci :
8
13
name : lint
13
18
uses : golangci/golangci-lint-action@v2
14
19
with :
15
20
# Optional: golangci-lint command line arguments.
16
- args : --issues-exit-code=0
21
+ # args:
17
22
# Optional: show only new issues if it's a pull request. The default value is `false`.
18
23
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 2
2
tests : false
3
3
4
4
issues :
5
+ include :
6
+ - EXC0001
7
+ - EXC0005
8
+ - EXC0011
9
+ - EXC0012
10
+ - EXC0013
11
+
5
12
max-issues-per-linter : 0
6
13
max-same-issues : 0
7
14
8
15
linters :
9
16
enable :
10
17
- bodyclose
11
- - dupl
12
18
- exportloopref
13
- - goconst
14
- - godot
15
- - godox
16
19
- goimports
17
- - golint
18
- - goprintffuncname
19
20
- gosec
20
- - ifshort
21
- - misspell
22
- - prealloc
21
+ - nilerr
22
+ - predeclared
23
+ - revive
23
24
- rowserrcheck
24
25
- sqlclosecheck
26
+ - tparallel
25
27
- unconvert
26
28
- unparam
27
29
- whitespace
You can’t perform that action at this time.
0 commit comments