log/""
This commit is contained in:
parent
459e85de92
commit
2c0d6050ef
1 changed files with 6 additions and 6 deletions
|
@ -9,7 +9,7 @@ rwx_lint() {
|
|||
"shell"
|
||||
local code
|
||||
for code in "${@}"; do
|
||||
rwx_log "${code}"
|
||||
rwx_log "" "${code}"
|
||||
"rwx_lint_${code}" "${path}"
|
||||
done
|
||||
rwx_lint_clean "${path}"
|
||||
|
@ -19,7 +19,7 @@ rwx_lint() {
|
|||
rwx_lint_clean() {
|
||||
local path="${1}"
|
||||
[ -n "${path}" ] || return 1
|
||||
rwx_log "py3clean"
|
||||
rwx_log "" "py3clean"
|
||||
py3clean \
|
||||
--verbose \
|
||||
"${path}"
|
||||
|
@ -28,7 +28,7 @@ rwx_lint_clean() {
|
|||
"ruff"
|
||||
local tool
|
||||
for tool in "${@}"; do
|
||||
rwx_log "${tool}"
|
||||
rwx_log "" "${tool}"
|
||||
rwx_remove "${path}/.${tool}_cache"
|
||||
done
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ rwx_lint_python() {
|
|||
"mypy" \
|
||||
"ruff"
|
||||
for action in "${@}"; do
|
||||
rwx_log "${action}"
|
||||
rwx_log "" "${action}"
|
||||
"rwx_${action}" "${path}"
|
||||
done
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ rwx_lint_shell() {
|
|||
"shellcheck" \
|
||||
"shfmt"
|
||||
for action in "${@}"; do
|
||||
rwx_log "${action}"
|
||||
rwx_log "" "${action}"
|
||||
"rwx_${action}" "${path}"
|
||||
done
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ rwx_lint_tasks() {
|
|||
"TODO" \
|
||||
"FIXME"
|
||||
for type in "${@}"; do
|
||||
rwx_log "${type}"
|
||||
rwx_log "" "${type}"
|
||||
grep \
|
||||
--after "1" \
|
||||
--directories "recurse" \
|
||||
|
|
Loading…
Reference in a new issue