File tree Expand file tree Collapse file tree 3 files changed +20
-9
lines changed Expand file tree Collapse file tree 3 files changed +20
-9
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ function fetch_kb_tools {
65
65
66
66
header_text " using tools"
67
67
68
- which gometalinter.v2
68
+ which golangci-lint
69
69
which dep
70
70
fetch_kb_tools
71
71
setup_envs
Original file line number Diff line number Diff line change @@ -20,22 +20,34 @@ source $(dirname ${BASH_SOURCE})/common.sh
20
20
21
21
header_text " running go vet"
22
22
23
- go vet ./...
23
+ # go vet ./...
24
24
25
25
# go get is broken for golint. re-enable this once it is fixed.
26
26
# header_text "running golint"
27
27
#
28
28
# golint -set_exit_status ./pkg/...
29
29
30
- header_text " running gometalinter.v2"
30
+ header_text " creating config"
31
+ echo "
32
+ linters-settings:
33
+ linters-settings:
34
+ dupl:
35
+ threshold: 400
36
+ min-len: 3
37
+ lll:
38
+ line-length: 170
39
+ tab-width: 1" > /tmp/.golangci-lint-config.yml
31
40
32
- gometalinter.v2 --disable-all \
41
+ header_text " running golangci-lint"
42
+
43
+ golangci-lint run --disable-all \
44
+ --config /tmp/.golangci-lint-config.yml \
33
45
--deadline 5m \
34
46
--enable=misspell \
35
47
--enable=structcheck \
36
48
--enable=golint \
37
49
--enable=deadcode \
38
- --enable=errcheck \
50
+ --enable=goimports \
39
51
--enable=varcheck \
40
52
--enable=goconst \
41
53
--enable=unparam \
@@ -44,14 +56,13 @@ gometalinter.v2 --disable-all \
44
56
--enable=interfacer \
45
57
--enable=misspell \
46
58
--enable=gocyclo \
47
- --line-length=170 \
48
59
--enable=lll \
49
- --dupl-threshold=400 \
50
60
--enable=dupl \
51
- --skip=atomic \
61
+ --skip-dirs =atomic \
52
62
--enable=goimports \
53
63
./pkg/... ./examples/... .
54
64
# TODO: Enable these as we fix them to make them pass
65
+ # --enable=errcheck \
55
66
# --enable=gosec \
56
67
# --enable=maligned \
57
68
# --enable=safesql \
Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ var _ = Describe("Source", func() {
350
350
if eventCount == 0 {
351
351
<- unblock
352
352
}
353
- eventCount += 1
353
+ eventCount ++
354
354
355
355
if eventCount == 3 {
356
356
close (processed )
You can’t perform that action at this time.
0 commit comments