lint/shell

This commit is contained in:
Marc Beninca 2025-01-31 23:34:44 +01:00
parent dca2637f81
commit 9d45c0285c
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,5 +1,5 @@
# lint python code
rwx_python_lint() {
rwx_lint_python() {
local path="${1}"
local action
set \
@ -12,3 +12,16 @@ rwx_python_lint() {
"rwx_${action}" "${path}"
done
}
# lint shell code
rwx_lint_shell() {
local path="${1}"
local action
set \
"shellcheck" \
"shfmt"
for action in "${@}"; do
rwx_log "${action}"
"rwx_${action}" "${path}"
done
}