File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 30
30
make get
31
31
- name : Lint Code
32
32
run : |
33
- GOBIN=$PWD/bin go install golang.org/x/tools/cmd/goimports
34
- GOBIN=$PWD/bin go install golang.org/x/lint/golint
35
- export PATH=$PATH:$PWD/bin
33
+ go install golang.org/x/tools/cmd/goimports
34
+ go install golang.org/x/lint/golint
36
35
make lint
37
36
- name : Test
38
37
run : |
Original file line number Diff line number Diff line change 9
9
go get -v -t -d ./...
10
10
11
11
format-lint :
12
- errors= $$( gofmt -l . ) ; if [ " $$ {errors} " != " " ] ; then echo " Format Lint Error Files:\n $$ {errors} " ; exit 1 ; fi
12
+ gofmt -l -d .
13
13
14
14
import-lint :
15
- errors= $$( goimports -l . ) ; if [ " $$ {errors} " != " " ] ; then echo " Import Lint Error Files:\n $$ {errors} " ; exit 1 ; fi
15
+ goimports -l -d .
16
16
17
17
style-lint :
18
- errors= $$( golint ./... ) ; if [ " $$ {errors} " != " " ] ; then echo " Style Lint Error Files:\n $$ {errors} " ; exit 1 ; fi
18
+ golint ./...
19
19
20
20
lint : format-lint import-lint style-lint
You can’t perform that action at this time.
0 commit comments