From 029d4ca10a4e7ab1d3eed12a8700ead191464c89 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 1 Feb 2025 00:58:14 +0100 Subject: [PATCH] lint/tasks --- sh/lint/lint.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/sh/lint/lint.sh b/sh/lint/lint.sh index 90cef0c..23c5f72 100644 --- a/sh/lint/lint.sh +++ b/sh/lint/lint.sh @@ -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 +}