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:
Madhu Rajanna
2019-02-07 15:26:39 +05:30
committed by mergify[bot]
parent a44da1ba5d
commit 1f3b32085c
4 changed files with 112 additions and 0 deletions

12
scripts/lint-go.sh Executable file
View 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