зеркало из https://github.com/github/vitess-gh.git
hooks: update golangci-lint
Signed-off-by: Vicent Marti <vmg@strn.cat>
This commit is contained in:
Родитель
6414431017
Коммит
4e33bd3a43
|
@ -25,7 +25,7 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install golangci-lint
|
||||
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.45.0
|
||||
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.45.2
|
||||
|
||||
- name: Clean Env
|
||||
run: $(go env GOPATH)/bin/golangci-lint cache clean
|
||||
|
|
|
@ -25,6 +25,8 @@ linters:
|
|||
- structcheck
|
||||
- typecheck
|
||||
- varcheck
|
||||
- staticcheck
|
||||
- gosimple
|
||||
|
||||
# Extras
|
||||
- gofmt
|
||||
|
@ -34,10 +36,6 @@ linters:
|
|||
# This is only enabled as a post-commit hook
|
||||
# - revive
|
||||
|
||||
# these linters have known issues with Go 1.18 but will be fixed soon
|
||||
# - staticcheck
|
||||
# - gosimple
|
||||
|
||||
issues:
|
||||
exclude-rules:
|
||||
- path: '^go/vt/proto/'
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
GOLANGCI_LINT=$(command -v golangci-lint >/dev/null 2>&1)
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Downloading golangci-lint..."
|
||||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.45.0
|
||||
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.45.2
|
||||
fi
|
||||
|
||||
gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep '^go/.*\.go$')
|
||||
|
|
Загрузка…
Ссылка в новой задаче