Skip to content

Commit 04ef5fa

Browse files
committedJun 16, 2021
chore: update golangci-lint
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
1 parent acd965b commit 04ef5fa

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed
 

‎.golangci.yml

+19-2
Original file line numberDiff line numberDiff line change
@@ -16,47 +16,64 @@ linters:
1616
- deadcode
1717
- dogsled
1818
- dupl
19+
- durationcheck
1920
- exhaustive
2021
- exportloopref
2122
- gci
2223
- goconst
2324
- gofmt
24-
- gofumpt
2525
- goimports
26-
- golint
26+
- gomoddirectives
2727
- goprintffuncname
2828
- govet
29+
- importas
2930
- ineffassign
31+
- makezero
3032
- misspell
3133
- nakedret
34+
- nilerr
3235
- noctx
3336
- nolintlint
3437
- prealloc
38+
- predeclared
39+
- revive
3540
- rowserrcheck
3641
- sqlclosecheck
3742
- staticcheck
3843
- structcheck
3944
- stylecheck
45+
- tparallel
4046
- typecheck
4147
- unconvert
4248
- unparam
4349
- unused
4450
- varcheck
51+
- wastedassign
4552
- whitespace
4653

4754
# fixme
55+
# - cyclop
4856
# - errcheck
57+
# - errorlint
58+
# - exhaustivestruct
59+
# - forbidigo
60+
# - forcetypeassert
4961
# - gochecknoglobals
5062
# - gochecknoinits
5163
# - gocognit
5264
# - gocritic
5365
# - gocyclo
5466
# - godot
67+
# - gofumpt
5568
# - gosec
5669
# - gosimple
70+
# - ifshort
5771
# - lll
5872
# - nlreturn
73+
# - paralleltest
5974
# - scopelint
75+
# - thelper
76+
# - wrapcheck
6077

6178
# unused
6279
# - depguard

‎Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ endif
1616

1717
# Dependency versions
1818
GOTESTSUM_VERSION = 0.5.3
19-
GOLANGCI_VERSION = 1.31.0
19+
GOLANGCI_VERSION = 1.40.1
2020

2121
# Add the ability to override some variables
2222
# Use with care

0 commit comments

Comments
 (0)