lint
This commit is contained in:
parent
f25059d159
commit
57da8c6212
2 changed files with 0 additions and 0 deletions
20
sh/lint/shellcheck.sh
Normal file
20
sh/lint/shellcheck.sh
Normal file
|
@ -0,0 +1,20 @@
|
|||
rwx_shellcheck_check() {
|
||||
local root="${1}"
|
||||
local file module modules path
|
||||
file="$(mktemp)"
|
||||
modules="$(sh_find_sh "${root}")"
|
||||
_sh_ifs_new
|
||||
for module in ${modules}; do
|
||||
path="${root}/${module}"
|
||||
echo ". \"${path}\"" >>"${file}"
|
||||
done
|
||||
_sh_ifs_pop
|
||||
shellcheck \
|
||||
--check-sourced \
|
||||
--enable "all" \
|
||||
--exclude "3043" \
|
||||
--external-sources \
|
||||
--shell "dash" \
|
||||
"${file}"
|
||||
rm "${file}"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue