Fixed vale finally.
Some checks failed
lint / runner / vale (push) Failing after 4s

This commit is contained in:
g_it 2026-04-08 13:43:19 +02:00
commit e101cb0af6
Signed by untrusted user who does not match committer: g_it
GPG key ID: A2B0A7C06A054627
4 changed files with 17 additions and 16 deletions

View file

@ -84,20 +84,20 @@ run_command() {
# Wait for all background jobs to finish
wait
# Lint markdown files using markdownlint-cli2
if command -v markdownlint-cli2 &>/dev/null; then
MD_FILES="$(git diff HEAD~1 HEAD --name-only --diff-filter=ACM | grep -E '\.md$' || true)"
if [[ -n "$MD_FILES" ]]; then
echo -e "${GREEN}Running markdownlint...${NC}"
echo "$MD_FILES" | xargs markdownlint-cli2 >"$LOG_DIR/markdownlint.log" 2>&1 || {
echo -e "${RED}markdownlint-cli2 failed. See $LOG_DIR/markdownlint.log${NC}"; exit 1;
}
else
echo -e "${YELLOW}No committed Markdown files found. Skipping markdown check.${NC}"
fi
else
echo -e "${YELLOW}markdownlint-cli2 not installed. Skipping markdown check.${NC}"
fi
# # Lint markdown files using markdownlint-cli2
# if command -v markdownlint-cli2 &>/dev/null; then
# MD_FILES="$(git diff HEAD~1 HEAD --name-only --diff-filter=ACM | grep -E '\.md$' || true)"
# if [[ -n "$MD_FILES" ]]; then
# echo -e "${GREEN}Running markdownlint...${NC}"
# echo "$MD_FILES" | xargs markdownlint-cli2 >"$LOG_DIR/markdownlint.log" 2>&1 || {
# echo -e "${RED}markdownlint-cli2 failed. See $LOG_DIR/markdownlint.log${NC}"; exit 1;
# }
# else
# echo -e "${YELLOW}No committed Markdown files found. Skipping markdown check.${NC}"
# fi
# else
# echo -e "${YELLOW}markdownlint-cli2 not installed. Skipping markdown check.${NC}"
# fi
# Lint language using Vale
if command -v vale &>/dev/null && [[ -f "$REPO_ROOT/.vale.ini" ]]; then