code/check
This commit is contained in:
parent
d7bdca5f12
commit
4a2a24a1b6
2 changed files with 18 additions and 14 deletions
18
sh/code.sh
18
sh/code.sh
|
@ -1,6 +1,10 @@
|
|||
# code
|
||||
# module
|
||||
|
||||
# ╭──────╮
|
||||
# │ code │
|
||||
# ╰──────╯
|
||||
|
||||
# show the cached code
|
||||
#= rc
|
||||
rwx_code() {
|
||||
|
@ -18,3 +22,17 @@ rwx_code_constants() {
|
|||
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}"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue