Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions bin/run-linters.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,14 @@ for linter in "${REQUIRED_LINTERS[@]}"; do
run_args=("${run_args_common[@]}")
"${LIB_ROOT}/checks/linters/shellcheck/run.sh" "${run_args[@]}"
;;
groovylint)
run_args=("${run_args_common[@]}")
"${LIB_ROOT}/checks/linters/groovylint/run.sh" "${run_args[@]}"
;;
markdownlint)
run_args=("${run_args_common[@]}")
"${LIB_ROOT}/checks/linters/markdownlint/run.sh" "${run_args[@]}"
;;
codespell)
run_args=("${run_args_common[@]}")
"${LIB_ROOT}/checks/linters/codespell/run.sh" "${run_args[@]}"
Expand Down
16 changes: 16 additions & 0 deletions checks/detect-linters.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ linter_fail_on_unknown_args
linter_require_common_args

shellcheck_needed=0
groovylint_needed=0
markdownlint_needed=0
codespell_needed=0
text_hygiene_needed=0
filename_portability_needed=0
Expand All @@ -24,11 +26,25 @@ while IFS= read -r file_path; do
if linter_is_shell_script_candidate "${file_path}"; then
shellcheck_needed=1
fi

if linter_is_groovy_candidate "${file_path}"; then
groovylint_needed=1
fi

if linter_is_markdown_candidate "${file_path}"; then
markdownlint_needed=1
fi
done < <(linter_get_candidate_files_acmr)

if [[ ${shellcheck_needed} -eq 1 ]]; then
echo 'shellcheck'
fi
if [[ ${groovylint_needed} -eq 1 ]]; then
echo 'groovylint'
fi
if [[ ${markdownlint_needed} -eq 1 ]]; then
echo 'markdownlint'
fi
if [[ ${codespell_needed} -eq 1 ]]; then
echo 'codespell'
fi
Expand Down
Loading