mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 02:43:36 +00:00
Add static check tools
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>
This commit is contained in:
committed by
mergify[bot]
parent
a44da1ba5d
commit
1f3b32085c
12
scripts/lint-go.sh
Executable file
12
scripts/lint-go.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/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
|
Reference in New Issue
Block a user