File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 just sysinfo
3535 - name : Run Go Test
3636 run : |
37- just init tidy lint test
37+ just init tidy lint tests
3838
Original file line number Diff line number Diff line change 1- run :
2- timeout : 5m
1+ version : " 2"
32linters :
43 enable :
5- - asasalint
6- - asciicheck
7- - bidichk
8- - bodyclose
9- - copyloopvar
10- - dogsled
11- - dupword
12- - durationcheck
13- - errcheck
14- - errname
15- - errorlint
16- - exhaustive
17- - gochecknoinits
18- - gocritic
19- - gofmt
20- - gosimple
21- - govet
22- - ineffassign
23- - makezero
24- - misspell
25- - musttag
26- - nilnil
27- - noctx
28- - perfsprint
29- - prealloc
30- - predeclared
31- - reassign
32- - revive
33- - rowserrcheck
34- - staticcheck
35- - sqlclosecheck
36- - tagalign
37- - tenv
38- - unused
39- - whitespace
40-
41- linters-settings :
42- exhaustive :
43- default-signifies-exhaustive : true
4+ - asasalint
5+ - asciicheck
6+ - bidichk
7+ - bodyclose
8+ - copyloopvar
9+ - dogsled
10+ - dupword
11+ - durationcheck
12+ - errname
13+ - errorlint
14+ - exhaustive
15+ - gochecknoinits
16+ - gocritic
17+ - makezero
18+ - misspell
19+ - musttag
20+ - nilnil
21+ - noctx
22+ - perfsprint
23+ - prealloc
24+ - predeclared
25+ - reassign
26+ - revive
27+ - rowserrcheck
28+ - sqlclosecheck
29+ - tagalign
30+ - usetesting
31+ - whitespace
32+ settings :
33+ exhaustive :
34+ default-signifies-exhaustive : true
35+ paralleltest :
36+ ignore-missing-subtests : true
37+ exclusions :
38+ generated : lax
39+ presets :
40+ - comments
41+ formatters :
42+ enable :
43+ - gofmt
44+ exclusions :
45+ generated : lax
Original file line number Diff line number Diff line change @@ -13,10 +13,16 @@ default:
1313tidy :
1414 go mod tidy
1515
16- # run tests across source tree
16+ # run specific unit test
1717[group (' build' )]
18- test :
19- go test -v -race -count=1 ./ ...
18+ [no-cd ]
19+ test unit :
20+ go test -v -count=1 -race -run {{ unit}} 2 >/ dev/ null
21+
22+ # run all tests across source tree
23+ [group (' build' )]
24+ tests :
25+ go test -count=1 -race ./ ... 2 >/ dev/ null
2026
2127# ensure copywrite headers present on source files
2228[group (' lint' )]
@@ -43,5 +49,5 @@ lint: vet
4349# locally install build dependencies
4450[group (' build' )]
4551init :
46- go install github.com/ golangci/ golangci-lint/ cmd/ golangci-lint@v1 .62.2
52+ go install github.com/ golangci/ golangci-lint/ v2 / cmd/ golangci-lint@v2 .8.0
4753
You can’t perform that action at this time.
0 commit comments