lint/tasks
This commit is contained in:
parent
ce62a934d8
commit
029d4ca10a
1 changed files with 17 additions and 0 deletions
|
@ -38,3 +38,20 @@ rwx_lint_shell() {
|
|||
"rwx_${action}" "${path}"
|
||||
done
|
||||
}
|
||||
|
||||
# lint code tasks
|
||||
rwx_lint_tasks() {
|
||||
local path="${1}"
|
||||
local type
|
||||
set \
|
||||
"LATER" \
|
||||
"TODO" \
|
||||
"FIXME"
|
||||
for type in "${@}"; do
|
||||
rwx_log "${type}"
|
||||
grep \
|
||||
--directories "recurse" \
|
||||
--line-number \
|
||||
"${type}"
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue