File tree 2 files changed +39
-0
lines changed
2 files changed +39
-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.1
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
+ issues :
4
+ # Disable maximum issues count per one linter.
5
+ max-issues-per-linter : 0
6
+ # Disable maximum count of issues with the same text.
7
+ max-same-issues : 0
8
+
9
+ linters :
10
+ enable :
11
+ - errorlint
12
+ - unconvert
13
+ - unparam
14
+ exclusions :
15
+ generated : disable
16
+ presets :
17
+ - comments
18
+ - std-error-handling
19
+ settings :
20
+ staticcheck :
21
+ # Enable all options, with some exceptions.
22
+ # For defaults, see https://golangci-lint.run/usage/linters/#staticcheck
23
+ checks :
24
+ - all
25
+ - -QF1008 # Omit embedded fields from selector expression; https://staticcheck.dev/docs/checks/#QF1008
26
+ - -ST1003 # Poorly chosen identifier; https://staticcheck.dev/docs/checks/#ST1003
27
+
28
+ formatters :
29
+ enable :
30
+ - gofumpt
31
+ - goimports
32
+ exclusions :
33
+ generated : disable
You can’t perform that action at this time.
0 commit comments