mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
1f3b32085c
Added md check to check .md style Add yamllint to check yaml style Moved gometalinter to scripts folder Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
13 lines
331 B
Bash
Executable File
13 lines
331 B
Bash
Executable File
#!/bin/bash
|
|
|
|
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 "${@-./...}"
|
|
else
|
|
echo "WARNING: gometalinter not found, skipping lint tests" >&2
|
|
fi
|