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

View file

@ -2,5 +2,5 @@ StylesPath = .vale
MinAlertLevel = suggestion MinAlertLevel = suggestion
Packages = https://gugulet.hu/technical/git/g_it/vale/raw/branch/main/gugulet-hu.zip Packages = https://gugulet.hu/technical/git/g_it/vale/raw/branch/main/gugulet-hu.zip
[content/**/*.md] [*.{adoc,html,md}]
gugulet-hu = YES gugulet-hu = YES

View file

@ -2,4 +2,5 @@ StylesPath = styles
Packages = Google, Readability, write-good, proselint Packages = Google, Readability, write-good, proselint
[*.{adoc,html,md}] [*.{adoc,html,md}]
BasedOnStyles = Google, Readability, write-good, proselint
gugulet-hu = YES gugulet-hu = YES

View file

@ -24,4 +24,4 @@ PyYAML==6.0.3
pyyaml_env_tag==1.1 pyyaml_env_tag==1.1
six==1.17.0 six==1.17.0
watchdog==6.0.0 watchdog==6.0.0
zensical==0.0.31 zensical==0.0.32