Skip to content

Commit b8e4145

Browse files
committed
bump linter version
1 parent 2d513e2 commit b8e4145

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/lint.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,22 @@ fi
2121
TESTS=${TESTS:-"golangci_lint"}
2222

2323
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
2525
golangci-lint run --config .golangci.yml
2626
}
2727

2828
# find_go_files [package]
2929
# all go files except generated ones
3030
function find_go_files {
3131
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)"
3333
}
3434

3535
function run {
3636
local test="${1}"
3737
shift 1
3838
echo "START: '${test}' at $(date)"
39-
if "test_${test}" "$@" ; then
39+
if "test_${test}" "$@"; then
4040
echo "SUCCESS: '${test}' completed at $(date)"
4141
else
4242
echo "FAIL: '${test}' failed at $(date)"

0 commit comments

Comments
 (0)