File tree 2 files changed +16
-32
lines changed
2 files changed +16
-32
lines changed Original file line number Diff line number Diff line change 40
40
git fetch
41
41
42
42
# Install golangci-lint
43
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master /install.sh | sh -s -- -b $(go env GOPATH)/bin v1.52 .2
43
+ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD /install.sh | sh -s -- -b $(go env GOPATH)/bin v2.1 .2
44
44
45
45
- name : Build
46
46
run : scripts/build.sh
Original file line number Diff line number Diff line change
1
+ version : 2
1
2
run :
2
- deadline : 5m
3
- build-tags :
4
- - debugdemoinfocs
5
- skip-dirs :
6
- - msg
7
- skip-files :
8
- - parser_interface.go
9
- - game_state_interface.go
10
3
allow-parallel-runners : true
11
4
5
+ exclusions :
6
+ paths :
7
+ - parser_interface.go
8
+ - ' *\\.pb\\.go$'
9
+ - parser_interface.go
10
+
11
+ formatters :
12
+ enable :
13
+ - gci
14
+ - gofmt
15
+ - gofumpt
16
+ - goimports
17
+
12
18
linters :
13
- disable-all : true
19
+ default : none
14
20
enable :
15
21
- bodyclose
16
22
- dogsled
17
23
- dupl
18
- - exportloopref
19
24
- exhaustive
20
- - funlen
21
25
- goconst
22
26
- gocritic
23
27
- gocyclo
24
- - gofmt
25
- - goimports
26
28
- goprintffuncname
27
29
- gosec
28
- - gosimple
29
30
- govet
30
31
- ineffassign
31
32
- misspell
@@ -34,7 +35,6 @@ linters:
34
35
- nolintlint
35
36
- rowserrcheck
36
37
- staticcheck
37
- - stylecheck
38
38
- unconvert
39
39
- unparam
40
40
- unused
@@ -45,19 +45,3 @@ linters:
45
45
- nestif
46
46
- prealloc
47
47
- revive
48
- - wsl
49
-
50
- issues :
51
- exclude-rules :
52
- # Exclude some linters from running on tests files.
53
- - path : _test\.go
54
- linters :
55
- - wsl
56
- - funlen
57
-
58
- linters-settings :
59
- gocritic :
60
- disabled-checks :
61
- - ifElseChain
62
- gci :
63
- local-prefixes : github.com/markus-wa/demoinfocs-golang/v5
You can’t perform that action at this time.
0 commit comments