File tree 3 files changed +9
-8
lines changed
3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,10 @@ linters-settings:
14
14
check-type-assertions : false
15
15
check-blank : false
16
16
exclude : ./errcheck_excludes.txt
17
- golint :
18
- min-confidence : 0.8
19
17
gofmt :
20
18
simplify : true
21
19
goimports :
22
20
local-prefixes : gitlab.com/postgres-ai/database-lab
23
- maligned :
24
- suggest-new : true
25
21
dupl :
26
22
threshold : 120
27
23
goconst :
@@ -30,6 +26,12 @@ linters-settings:
30
26
lll :
31
27
line-length : 140
32
28
tab-width : 1
29
+ gomnd :
30
+ settings :
31
+ mnd :
32
+ ignored-functions : strconv.Format*,os.*
33
+ revive :
34
+ min-confidence : 0.8
33
35
unused :
34
36
check-exported : false
35
37
unparam :
@@ -59,16 +61,15 @@ linters:
59
61
- goconst
60
62
- gocritic
61
63
- goimports
62
- - golint
63
64
- gomnd
64
65
- gosimple
65
66
- govet
66
67
- ineffassign
67
68
- lll
68
- - maligned
69
69
- megacheck
70
70
- misspell
71
71
- prealloc
72
+ - revive
72
73
- structcheck
73
74
- stylecheck
74
75
- unconvert
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ all: clean build
30
30
31
31
# Install the linter to $GOPATH/bin which is expected to be in $PATH
32
32
install-lint :
33
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH ) /bin v1.35.2
33
+ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH ) /bin v1.42.1
34
34
35
35
run-lint :
36
36
golangci-lint run
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import (
11
11
"os"
12
12
)
13
13
14
- var debugMode bool = true
14
+ var debugMode = true
15
15
16
16
var std = log .New (os .Stderr , "" , log .LstdFlags | log .Lshortfile )
17
17
You can’t perform that action at this time.
0 commit comments