File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,12 @@ linters-settings:
36
36
min-len: 3
37
37
lll:
38
38
line-length: 170
39
- tab-width: 1" > /tmp/.golangci-lint-config.yml
39
+ tab-width: 1
40
+ issues:
41
+ exclude-rules:
42
+ - path: _test\.go
43
+ linters:
44
+ - errcheck" > /tmp/.golangci-lint-config.yml
40
45
41
46
header_text " running golangci-lint"
42
47
@@ -48,6 +53,7 @@ golangci-lint run --disable-all \
48
53
--enable=golint \
49
54
--enable=deadcode \
50
55
--enable=goimports \
56
+ --enable=errcheck \
51
57
--enable=varcheck \
52
58
--enable=goconst \
53
59
--enable=unparam \
@@ -62,7 +68,6 @@ golangci-lint run --disable-all \
62
68
--enable=goimports \
63
69
./pkg/... ./examples/... .
64
70
# TODO: Enable these as we fix them to make them pass
65
- # --enable=errcheck \
66
71
# --enable=gosec \
67
72
# --enable=maligned \
68
73
# --enable=safesql \
You can’t perform that action at this time.
0 commit comments