code/check

This commit is contained in:
Marc Beninca 2025-07-06 23:15:48 +02:00
parent d7bdca5f12
commit 4a2a24a1b6
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 18 additions and 14 deletions

View file

@ -1,6 +1,10 @@
# code # code
# module # module
# ╭──────╮
# │ code │
# ╰──────╯
# show the cached code # show the cached code
#= rc #= rc
rwx_code() { rwx_code() {
@ -18,3 +22,17 @@ rwx_code_constants() {
rwx_code_functions() { rwx_code_functions() {
echo "${_rwx_code_functions}" echo "${_rwx_code_functions}"
} }
# ╭──────┬───────╮
# │ code │ check │
# ╰──────┴───────╯
# check source code
rwx_code_check() {
# check format
rwx_log
rwx_shfmt "${RWX_ROOT_SYSTEM}"
# check syntax
rwx_log
rwx_shellcheck "${RWX_ROOT_SYSTEM}"
}

View file

@ -25,20 +25,6 @@ rwx_doc() {
--file "${RWX_AWK}" --file "${RWX_AWK}"
} }
# ╭──────┬───────╮
# │ self │ check │
# ╰──────┴───────╯
# check source code
rwx_self_check() {
# check format
rwx_log
rwx_shfmt "${RWX_ROOT_SYSTEM}"
# check syntax
rwx_log
rwx_shellcheck "${RWX_ROOT_SYSTEM}"
}
# ╭──────┬──────────╮ # ╭──────┬──────────╮
# │ self │ commands │ # │ self │ commands │
# ╰──────┴──────────╯ # ╰──────┴──────────╯