Skip to content
This repository was archived by the owner on May 3, 2023. It is now read-only.

Commit 04c83e8

Browse files
authored
Merge pull request #10 from Financial-Times/fix/UPPSF-3427-update-conf
Update the structure of the config file, remove dup keys
2 parents 585f7fb + 22afab8 commit 04c83e8

File tree

1 file changed

+28
-30
lines changed

1 file changed

+28
-30
lines changed

golangci-config/.golangci.yml

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,40 @@ linters-settings:
22
govet:
33
check-shadowing: true
44
settings:
5-
printf:
6-
funcs:
7-
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
8-
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
9-
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
10-
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
5+
printf:
6+
funcs:
7+
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
8+
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
9+
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
10+
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
1111
revive:
1212
confidence: 0
13+
gocognit:
14+
min-complexity: 20
1315

1416
linters:
1517
disable-all: true
1618
enable:
17-
- bodyclose
18-
- deadcode
19-
- errcheck
20-
- gocognit
21-
- gofmt
22-
- goimports
23-
- gosec
24-
- gosimple
25-
- govet
26-
- ineffassign
27-
- misspell
28-
- revive
29-
- staticcheck
30-
- structcheck
31-
- stylecheck
32-
- typecheck
33-
- unparam
34-
- unused
35-
- varcheck
36-
- whitespace
37-
38-
linters-settings:
39-
gocognit:
40-
min-complexity: 20
19+
- bodyclose
20+
- deadcode
21+
- errcheck
22+
- gocognit
23+
- gofmt
24+
- goimports
25+
- gosec
26+
- gosimple
27+
- govet
28+
- ineffassign
29+
- misspell
30+
- revive
31+
- staticcheck
32+
- structcheck
33+
- stylecheck
34+
- typecheck
35+
- unparam
36+
- unused
37+
- varcheck
38+
- whitespace
4139

4240
run:
4341
skip-dirs:

0 commit comments

Comments
 (0)