Skip to content

Commit 93a704f

Browse files
authored
Merge pull request #517 from netwrix/dev
treat Vale warnings as failures in pre-push hook
2 parents 38c4531 + 41be864 commit 93a704f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ echo "$CHANGED_MD_FILES" > "$TMPFILE"
6464

6565
while IFS= read -r FILE; do
6666
if [ -f "$FILE" ]; then
67-
OUTPUT=$(vale "$FILE" 2>&1)
67+
OUTPUT=$(vale --minAlertLevel=warning "$FILE" 2>&1)
6868
EXIT_CODE=$?
6969
if [ $EXIT_CODE -ne 0 ]; then
7070
echo "$OUTPUT"

0 commit comments

Comments
 (0)