File tree 2 files changed +32
-0
lines changed
2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 28
28
with :
29
29
go-version : ${{ matrix.go-version }}
30
30
31
+ - name : lint
32
+ uses : golangci/golangci-lint-action@v7
33
+ with :
34
+ version : v2.0
35
+ args : --print-resources-usage --timeout=10m --verbose
36
+
31
37
- name : Test
32
38
run : go test -v -cover "-coverprofile=coverage.txt" -covermode=atomic ./...
33
39
shell : bash
Original file line number Diff line number Diff line change
1
+ version : " 2"
2
+
3
+ linters :
4
+ enable :
5
+ - errorlint
6
+ - unconvert
7
+ - unparam
8
+ exclusions :
9
+ generated : disable
10
+ presets :
11
+ - comments
12
+ - std-error-handling
13
+ settings :
14
+ staticcheck :
15
+ # Enable all options, with some exceptions.
16
+ # For defaults, see https://golangci-lint.run/usage/linters/#staticcheck
17
+ checks :
18
+ - all
19
+ - -QF1008 # Omit embedded fields from selector expression; https://staticcheck.dev/docs/checks/#QF1008
20
+ - -ST1003 # Poorly chosen identifier; https://staticcheck.dev/docs/checks/#ST1003
21
+
22
+ formatters :
23
+ enable :
24
+ - gofumpt
25
+ exclusions :
26
+ generated : disable
You can’t perform that action at this time.
0 commit comments