Skip to content

Commit fdd9c7c

Browse files
committed
golangci-lint upgrade
1 parent 0ce66de commit fdd9c7c

File tree

2 files changed

+16
-32
lines changed

2 files changed

+16
-32
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
git fetch
4141
4242
# 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
4444
4545
- name: Build
4646
run: scripts/build.sh

.golangci.yml

+15-31
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
1+
version: 2
12
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
103
allow-parallel-runners: true
114

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+
1218
linters:
13-
disable-all: true
19+
default: none
1420
enable:
1521
- bodyclose
1622
- dogsled
1723
- dupl
18-
- exportloopref
1924
- exhaustive
20-
- funlen
2125
- goconst
2226
- gocritic
2327
- gocyclo
24-
- gofmt
25-
- goimports
2628
- goprintffuncname
2729
- gosec
28-
- gosimple
2930
- govet
3031
- ineffassign
3132
- misspell
@@ -34,7 +35,6 @@ linters:
3435
- nolintlint
3536
- rowserrcheck
3637
- staticcheck
37-
- stylecheck
3838
- unconvert
3939
- unparam
4040
- unused
@@ -45,19 +45,3 @@ linters:
4545
- nestif
4646
- prealloc
4747
- 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

0 commit comments

Comments
 (0)