refactor(history): commit development branch
All checks were successful
/ job (push) Successful in 1m12s
All checks were successful
/ job (push) Successful in 1m12s
new development branch from root commit
This commit is contained in:
parent
3e562930f6
commit
020aaa0b9a
94 changed files with 4804 additions and 0 deletions
34
sh/lint/shellcheck.sh
Normal file
34
sh/lint/shellcheck.sh
Normal file
|
@ -0,0 +1,34 @@
|
|||
rwx_shellcheck() {
|
||||
local root="${1}"
|
||||
local file module modules path
|
||||
file="$(mktemp)"
|
||||
modules="$(rwx_find_shell "${root}")"
|
||||
rwx_ifs_set
|
||||
for module in ${modules}; do
|
||||
path="${root}/${module}"
|
||||
echo ". \"${path}\"" >>"${file}"
|
||||
done
|
||||
rwx_ifs_unset
|
||||
rwx_shellcheck_file "${file}"
|
||||
rwx_remove "${file}"
|
||||
}
|
||||
|
||||
rwx_shellcheck_file() {
|
||||
local file="${1}"
|
||||
shellcheck \
|
||||
--check-sourced \
|
||||
--enable "all" \
|
||||
--exclude "3043" \
|
||||
--external-sources \
|
||||
--shell "dash" \
|
||||
"${file}"
|
||||
}
|
||||
|
||||
rwx_shellcheck_write() {
|
||||
rwx_file_write ".shellcheckrc" "\
|
||||
disable=3043
|
||||
enable=all
|
||||
external-sources=true
|
||||
shell=sh
|
||||
"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue