File tree Expand file tree Collapse file tree 2 files changed +25
-19
lines changed Expand file tree Collapse file tree 2 files changed +25
-19
lines changed Original file line number Diff line number Diff line change
1
+ linters :
2
+ disable-all : true
3
+ enable :
4
+ - nakedret
5
+ - interfacer
6
+ - varcheck
7
+ - deadcode
8
+ - structcheck
9
+ - misspell
10
+ - maligned
11
+ - ineffassign
12
+ - goconst
13
+ - goimports
14
+ - errcheck
15
+ - unparam
16
+ - golint
17
+ - staticcheck
18
+ - gosimple
19
+ - unused
20
+ - govet
21
+ - typecheck
22
+
23
+ run :
24
+ deadline : 5m
Original file line number Diff line number Diff line change @@ -9,25 +9,7 @@ build: $(SOURCES) ## Build Test
9
9
go build -i -ldflags=" -s -w" ./...
10
10
11
11
lint : golangci-lint # # Run golint
12
- @golangci-lint run --disable-all \
13
- --deadline 5m \
14
- --enable=nakedret \
15
- --enable=interfacer \
16
- --enable=varcheck \
17
- --enable=deadcode \
18
- --enable=structcheck \
19
- --enable=misspell \
20
- --enable=maligned \
21
- --enable=ineffassign \
22
- --enable=goconst \
23
- --enable=goimports \
24
- --enable=errcheck \
25
- --enable=dupl \
26
- --enable=unparam \
27
- --enable=golint \
28
- --enable=staticcheck \
29
- --enable=unused \
30
- --enable=gosimple \
12
+ @$(GOLANGCI_LINT ) run
31
13
32
14
fmt : # # Run go fmt
33
15
@gofmt -d $(SOURCES )
You can’t perform that action at this time.
0 commit comments