Skip to content

Commit aaf6433

Browse files
committed
Fix golangci-lint v2 config format
1 parent 23623f5 commit aaf6433

1 file changed

Lines changed: 8 additions & 22 deletions

File tree

.golangci.yml

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
run:
2-
timeout: 5m
3-
tests: true
1+
version: "2"
42

53
linters:
64
enable:
@@ -14,32 +12,20 @@ linters:
1412
- gofmt
1513
- goimports
1614
- misspell
17-
- prealloc
1815
- unconvert
1916
- unparam
2017
- whitespace
2118

22-
linters-settings:
23-
errcheck:
24-
check-type-assertions: true
25-
gocritic:
26-
enabled-tags:
27-
- performance
28-
- style
29-
- experimental
30-
disabled-checks:
31-
- wrapperFunc
32-
gofmt:
33-
simplify: true
19+
settings:
20+
errcheck:
21+
check-type-assertions: true
22+
gocritic:
23+
enabled-tags:
24+
- performance
25+
- style
3426

3527
issues:
3628
exclude-rules:
37-
# Exclude some linters from running on tests files
3829
- path: _test\.go
3930
linters:
4031
- gocritic
41-
- gosec
42-
# Exclude known linter issues
43-
- text: "weak cryptographic primitive"
44-
linters:
45-
- gosec

0 commit comments

Comments
 (0)