Skip to content
Snippets Groups Projects
Unverified Commit eba38e30 authored by Thomas Woerner's avatar Thomas Woerner Committed by GitHub
Browse files

Merge pull request #466 from rjeffman/utils_fix_covscan_findings_lint_check

covscan error[SC2068]: Fix unquoted array expansions.
parents bc456487 cef733eb
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
topdir=`dirname $(dirname $0)`
topdir="`dirname $(dirname $0)`"
flake8 .
pydocstyle .
......@@ -11,15 +11,18 @@ ANSIBLE_MODULE_UTILS=${ANSIBLE_MODULE_UTILS:-"${topdir}/plugins/module_utils"}
export ANSIBLE_LIBRARY ANSIBLE_MODULE_UTILS
yaml_dirs=(
"${topdir}/tests/*.yml"
"${topdir}/tests/*/*.yml"
"${topdir}/tests/*/*/*.yml"
"${topdir}/playbooks/*.yml"
"${topdir}/playbooks/*/*.yml"
"${topdir}/molecule/*/*.yml"
"${topdir}/molecule/*/*/*.yml"
"${topdir}/tests"
"${topdir}/playbooks"
"${topdir}/molecule"
)
ansible-lint --force-color ${yaml_dirs[@]}
for dir in "${yaml_dirs[@]}"
do
find "${dir}" -type f -name "*.yml" | xargs ansible-lint --force-color
done
yamllint -f colored ${yaml_dirs[@]}
for dir in "${yaml_dirs[@]}"
do
find "${dir}" -type f -name "*.yml" | xargs yamllint
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment