mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
covscan error[SC2068]: Fix unquoted array expansions.
error[SC2068]: Double quote array expansions to avoid re-splitting elements.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/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
|
||||
|
||||
Reference in New Issue
Block a user