Skip to content

Commit ab75609

Browse files
committed
chore: fix golangci config
1 parent 609775c commit ab75609

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

.golangci.yml

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,16 @@ linters:
3535
- linters:
3636
- revive
3737
text: "should have a package comment"
38-
39-
linters-settings:
40-
errcheck:
41-
# report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`.
42-
check-blank: true
43-
gosimple:
44-
# Select the Go version to target.
45-
go: "1.17"
46-
# https://staticcheck.io/docs/options#checks
47-
checks: ["all"]
48-
govet:
49-
check-shadowing: true
50-
staticcheck:
51-
go: "1.17"
52-
# https://staticcheck.io/docs/options#checks
53-
checks: ["all"]
54-
decorder:
55-
disable-dec-order-check: false
56-
disable-init-func-first-check: false
38+
settings:
39+
errcheck:
40+
# report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`.
41+
check-blank: true
42+
govet:
43+
enable:
44+
- shadow
45+
staticcheck:
46+
# https://staticcheck.io/docs/options#checks
47+
checks: ["all"]
48+
decorder:
49+
disable-dec-order-check: false
50+
disable-init-func-first-check: false

0 commit comments

Comments
 (0)