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
24 changes: 22 additions & 2 deletions .github/workflows/vale-autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,26 @@ jobs:
chmod +x /tmp/vale
/tmp/vale --version

- name: Verify Vale styles
if: steps.changed-files.outputs.count > 0
run: |
echo "=== .vale.ini ==="
cat .vale.ini
echo ""
echo "=== Styles directory ==="
ls -la .vale/styles/Netwrix/ | head -20
echo ""
echo "=== Rule count ==="
ls .vale/styles/Netwrix/*.yml | wc -l
echo ""
echo "=== Test Vale on first changed file ==="
FIRST_FILE=$(head -1 /tmp/changed-files.txt)
echo "Running: /tmp/vale --output JSON $FIRST_FILE"
/tmp/vale --output JSON "$FIRST_FILE" 2>&1 | head -100 || true
echo ""
echo "=== Vale stderr test ==="
/tmp/vale "$FIRST_FILE" 2>&1 || true

- name: Run Vale on changed files
id: vale-initial
if: steps.changed-files.outputs.count > 0
Expand All @@ -67,7 +87,7 @@ jobs:

while IFS= read -r file; do
if [ -f "$file" ]; then
RESULT=$(/tmp/vale --output JSON "$file" 2>/dev/null || true)
RESULT=$(/tmp/vale --output JSON "$file" 2>&1 || true)
if [ -n "$RESULT" ] && [ "$RESULT" != "{}" ]; then
echo "$RESULT" | jq --arg f "$file" '
[to_entries[] | .value[] | {path: $f, line: .Line, check: .Check, message: .Message}]
Expand Down Expand Up @@ -114,7 +134,7 @@ jobs:

while IFS= read -r file; do
if [ -f "$file" ]; then
RESULT=$(/tmp/vale --output JSON "$file" 2>/dev/null || true)
RESULT=$(/tmp/vale --output JSON "$file" 2>&1 || true)
if [ -n "$RESULT" ] && [ "$RESULT" != "{}" ]; then
echo "$RESULT" | jq --arg f "$file" '
[to_entries[] | .value[] | {path: $f, line: .Line, check: .Check, message: .Message}]
Expand Down
13 changes: 13 additions & 0 deletions docs/accessanalyzer/12.0/vale-debug-test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: "Vale Debug Test"
description: "Test page for debugging Vale in CI"
sidebar_position: 997
---

# Vale Debug Test

Make sure you select the correct check box in the drop-down menu.

You do not need to click on the button.

Please utilize the setup wizard in order to configure.
Loading