for/in
All checks were successful
/ job (push) Successful in 2m54s

This commit is contained in:
Marc Beninca 2025-08-02 10:05:13 +02:00
parent 44dc07d667
commit 173f842b9a
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
11 changed files with 29 additions and 29 deletions

View file

@ -8,7 +8,7 @@ rwx_lint() {
"python" \
"shell"
local code
for code in "${@}"; do
for code; do
rwx_log "" "${code}"
"rwx_lint_${code}" "${path}"
done
@ -25,7 +25,7 @@ rwx_lint_clean() {
"mypy" \
"ruff"
local tool
for tool in "${@}"; do
for tool; do
rwx_remove "${path}/.${tool}_cache"
done
}
@ -39,7 +39,7 @@ rwx_lint_python() {
"pydoclint" \
"mypy" \
"ruff"
for action in "${@}"; do
for action; do
rwx_log "" "${action}"
"rwx_${action}" "${path}"
done
@ -52,7 +52,7 @@ rwx_lint_shell() {
set \
"shellcheck" \
"shfmt"
for action in "${@}"; do
for action; do
rwx_log "" "${action}"
"rwx_${action}" "${path}"
done
@ -66,7 +66,7 @@ rwx_lint_tasks() {
"LATER" \
"TODO" \
"FIXME"
for type in "${@}"; do
for type; do
rwx_log "" "${type}"
grep \
--after "1" \

View file

@ -4,7 +4,7 @@ rwx_ruff() {
set \
"check" \
"format"
for action in "${@}"; do
for action; do
"rwx_ruff_${action}" "${path}"
done
}