File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,25 @@ build: $(SOURCES) ## Build Test
11
11
go build -i -ldflags=" -s -w" ./...
12
12
13
13
lint : # # Run golint
14
- @golint -set_exit_status $(addsuffix /... , $(SOURCE_DIRS ) )
14
+ @golangci-lint run --disable-all \
15
+ --deadline 5m \
16
+ --enable=nakedret \
17
+ --enable=interfacer \
18
+ --enable=varcheck \
19
+ --enable=deadcode \
20
+ --enable=structcheck \
21
+ --enable=misspell \
22
+ --enable=maligned \
23
+ --enable=ineffassign \
24
+ --enable=goconst \
25
+ --enable=goimports \
26
+ --enable=errcheck \
27
+ --enable=dupl \
28
+ --enable=unparam \
29
+ --enable=golint \
30
+ --enable=staticcheck \
31
+ --enable=unused \
32
+ --enable=gosimple \
15
33
16
34
fmt : # # Run go fmt
17
35
@gofmt -d $(SOURCES )
Original file line number Diff line number Diff line change @@ -34,8 +34,7 @@ import (
34
34
type runModeType string
35
35
36
36
const (
37
- localRunMode runModeType = "local"
38
- clusterRunMode runModeType = "cluster"
37
+ localRunMode runModeType = "local"
39
38
)
40
39
41
40
// forceRunModeEnv indicates if the operator should be forced to run in either local
You can’t perform that action at this time.
0 commit comments