File tree 3 files changed +38
-59
lines changed
3 files changed +38
-59
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- master
7
+ - main
7
8
pull_request :
8
9
9
10
jobs :
@@ -13,24 +14,16 @@ jobs:
13
14
runs-on : ubuntu-latest
14
15
env :
15
16
GO_VERSION : stable
16
- GOLANGCI_LINT_VERSION : v1.56.2
17
+ GOLANGCI_LINT_VERSION : v1.63.4
17
18
CGO_ENABLED : 0
18
19
19
20
steps :
20
21
21
- # https://github.com/marketplace/actions/checkout
22
- - name : Check out code
23
- uses : actions/checkout@v4
24
- with :
25
- fetch-depth : 0
26
-
27
- # https://github.com/marketplace/actions/setup-go-environment
28
- - name : Set up Go ${{ env.GO_VERSION }}
29
- uses : actions/setup-go@v5
22
+ - uses : actions/checkout@v4
23
+ - uses : actions/setup-go@v5
30
24
with :
31
25
go-version : ${{ env.GO_VERSION }}
32
26
33
-
34
27
- name : Check and get dependencies
35
28
run : |
36
29
go mod tidy
Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- master
7
+ - main
7
8
pull_request :
8
9
9
10
jobs :
20
21
os : [ubuntu-latest, macos-latest, windows-latest]
21
22
22
23
steps :
23
-
24
- # https://github.com/marketplace/actions/checkout
25
- - name : Checkout code
26
- uses : actions/checkout@v4
27
-
28
- # https://github.com/marketplace/actions/setup-go-environment
29
- - name : Set up Go ${{ matrix.go-version }}
30
- uses : actions/setup-go@v5
24
+ - uses : actions/checkout@v4
25
+ - uses : actions/setup-go@v5
31
26
with :
32
27
go-version : ${{ matrix.go-version }}
33
28
Original file line number Diff line number Diff line change 1
- run :
2
- timeout : 2m
1
+ linters :
2
+ enable-all : true
3
+ disable :
4
+ - exportloopref # deprecated
5
+ - cyclop # duplicate of gocyclo
6
+ - sqlclosecheck # not relevant (SQL)
7
+ - rowserrcheck # not relevant (SQL)
8
+ - dupl
9
+ - lll
10
+ - nestif
11
+ - mnd
12
+ - err113
13
+ - nlreturn
14
+ - wsl
15
+ - exhaustive
16
+ - exhaustruct
17
+ - tparallel
18
+ - testpackage
19
+ - paralleltest
20
+ - forcetypeassert
21
+ - varnamelen
22
+ - prealloc # false-positives
23
+ - nonamedreturns
24
+ - nilerr
25
+ - depguard
3
26
4
27
linters-settings :
5
28
govet :
@@ -23,44 +46,9 @@ linters-settings:
23
46
godox :
24
47
keywords :
25
48
- FIXME
26
-
27
- linters :
28
- enable-all : true
29
- disable :
30
- - deadcode # deprecated
31
- - exhaustivestruct # deprecated
32
- - golint # deprecated
33
- - ifshort # deprecated
34
- - interfacer # deprecated
35
- - maligned # deprecated
36
- - nosnakecase # deprecated
37
- - scopelint # deprecated
38
- - structcheck # deprecated
39
- - varcheck # deprecated
40
- - cyclop # duplicate of gocyclo
41
- - sqlclosecheck # not relevant (SQL)
42
- - rowserrcheck # not relevant (SQL)
43
- - execinquery # not relevant (SQL)
44
- - dupl
45
- - lll
46
- - nestif
47
- - gomnd
48
- - goerr113
49
- - nlreturn
50
- - wsl
51
- - exhaustive
52
- - exhaustruct
53
- - tparallel
54
- - testpackage
55
- - paralleltest
56
- - ifshort
57
- - forcetypeassert
58
- - varnamelen
59
- - prealloc # false-positives
60
- - nosnakecase
61
- - nonamedreturns
62
- - nilerr
63
- - depguard
49
+ gosec :
50
+ excludes :
51
+ - G115 # integer overflow conversion
64
52
65
53
issues :
66
54
exclude-use-default : false
@@ -78,3 +66,6 @@ issues:
78
66
- path : cmd/revgrep/main.go
79
67
linters :
80
68
- forbidigo
69
+
70
+ run :
71
+ timeout : 2m
You can’t perform that action at this time.
0 commit comments