mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 02:43:36 +00:00
replace gometalinter with golangci
gometalinter is being deprecated in favor of golangci. switching to golangci in ci and make test Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
@ -2,11 +2,8 @@
|
||||
|
||||
set -o pipefail
|
||||
|
||||
if [[ -x "$(command -v gometalinter)" ]]; then
|
||||
gometalinter -j "${GO_METALINTER_THREADS:-1}" \
|
||||
--sort path --sort line --sort column --deadline=10m \
|
||||
--enable=misspell --enable=staticcheck \
|
||||
--vendor "${@-./...}"
|
||||
if [[ -x "$(command -v golangci-lint)" ]]; then
|
||||
golangci-lint --config=scripts/golangci.yml run ./... -v
|
||||
else
|
||||
echo "WARNING: gometalinter not found, skipping lint tests" >&2
|
||||
echo "WARNING: golangci-lint not found, skipping lint tests" >&2
|
||||
fi
|
||||
|
Reference in New Issue
Block a user