Skip to content

Commit c5cf02a

Browse files
committed
fixup golangcilint
Signed-off-by: Simon Schrottner <[email protected]>
1 parent 7ec6526 commit c5cf02a

File tree

2 files changed

+10
-48
lines changed

2 files changed

+10
-48
lines changed

.golangci.yml

+6-44
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,5 @@
11
run:
2-
skip-dirs:
3-
- (^|/)bin($|/)
4-
- (^|/)examples($|/)
5-
- (^|/)schemas($|/)
6-
- (^|/)test-harness($|/)
7-
linters:
8-
enable:
9-
- asciicheck
10-
- asasalint
11-
- bidichk
12-
- bodyclose
13-
- contextcheck
14-
- dogsled
15-
- dupl
16-
- dupword
17-
- durationcheck
18-
- errchkjson
19-
- exhaustive
20-
- funlen
21-
- gci
22-
- goconst
23-
- gocritic
24-
- gocyclo
25-
- interfacebloat
26-
- gosec
27-
- lll
28-
- misspell
29-
- nakedret
30-
- nilerr
31-
- nilnil
32-
- noctx
33-
- nosprintfhostport
34-
- prealloc
35-
- promlinter
36-
- revive
37-
- rowserrcheck
38-
- exportloopref
39-
- stylecheck
40-
- unconvert
41-
- unparam
42-
- whitespace
43-
- wrapcheck
44-
- gofumpt
45-
- tenv
2+
timeout: 3m
463
linters-settings:
474
funlen:
485
statements: 50
@@ -65,3 +22,8 @@ issues:
6522
- gocyclo
6623
- dupl
6724
- staticcheck
25+
exclude-dirs:
26+
- (^|/)bin($|/)
27+
- (^|/)examples($|/)
28+
- (^|/)schemas($|/)
29+
- (^|/)test-harness($|/)

Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ uninstall:
6666
rm /etc/systemd/system/flagd.service
6767
rm -f $(DESTDIR)$(PREFIX)/bin/flagd
6868
lint:
69-
go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.2
70-
$(foreach module, $(ALL_GO_MOD_DIRS), ${GOPATH}/bin/golangci-lint run --deadline=5m --timeout=5m $(module)/... || exit;)
69+
go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.8
70+
$(foreach module, $(ALL_GO_MOD_DIRS), ${GOPATH}/bin/golangci-lint run $(module)/...;)
7171
lint-fix:
72-
go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.2
73-
$(foreach module, $(ALL_GO_MOD_DIRS), ${GOPATH}/bin/golangci-lint run --fix --deadline=5m --timeout=5m $(module)/... || exit;)
72+
go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.8
73+
$(foreach module, $(ALL_GO_MOD_DIRS), ${GOPATH}/bin/golangci-lint run --fix $(module)/...;)
7474
install-mockgen:
7575
go install go.uber.org/mock/[email protected]
7676
mockgen: install-mockgen

0 commit comments

Comments
 (0)