lint/shell
This commit is contained in:
parent
dca2637f81
commit
9d45c0285c
1 changed files with 14 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
# lint python code
|
# lint python code
|
||||||
rwx_python_lint() {
|
rwx_lint_python() {
|
||||||
local path="${1}"
|
local path="${1}"
|
||||||
local action
|
local action
|
||||||
set \
|
set \
|
||||||
|
@ -12,3 +12,16 @@ rwx_python_lint() {
|
||||||
"rwx_${action}" "${path}"
|
"rwx_${action}" "${path}"
|
||||||
done
|
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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue