File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 21
21
TESTS=${TESTS:- " golangci_lint" }
22
22
23
23
function test_golangci_lint {
24
- go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.49.0
24
+ go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.2
25
25
golangci-lint run --config .golangci.yml
26
26
}
27
27
28
28
# find_go_files [package]
29
29
# all go files except generated ones
30
30
function find_go_files {
31
31
local target=" ${1} "
32
- go fmt -n " ${target} " | grep -Eo " ([^ ]*)$" | grep -vE " (\\ .pb\\ .go|\\ .pb\\ .gw.go)"
32
+ go fmt -n " ${target} " | grep -Eo " ([^ ]*)$" | grep -vE " (\\ .pb\\ .go|\\ .pb\\ .gw.go)"
33
33
}
34
34
35
35
function run {
36
36
local test=" ${1} "
37
37
shift 1
38
38
echo " START: '${test} ' at $( date) "
39
- if " test_${test} " " $@ " ; then
39
+ if " test_${test} " " $@ " ; then
40
40
echo " SUCCESS: '${test} ' completed at $( date) "
41
41
else
42
42
echo " FAIL: '${test} ' failed at $( date) "
You can’t perform that action at this time.
0 commit comments