Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 committed Jun 17, 2024
1 parent 1d4b4d1 commit f5fe768
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 24 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/vale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,7 @@ jobs:
run: echo $CHANGED_FILES

- name: Run Vale on changed files
run: |
for file in $(echo ${{ steps.changed-files.outputs.files }} | jq -r '.[]'); do
echo "Running Vale on $file"
vale --output=JSON $file > "vale_output_${file//\//_}.json"
done
echo "Vale outputs:"
ls -l
run: vale --config=vale.ini --output=JSON $file > "vale_output_${file//\//_}.json"

- name: Apply Vale edits and save originals
run: |
Expand Down Expand Up @@ -105,7 +99,7 @@ jobs:
github_token: ${{ secrets.REVIEWDOG_GITHUB_API_TOKEN }}
tool_name: Vale
level: "warning"
filter_mode: "diff_context"
filter_mode: "added"
fail_on_error: "false"
reviewdog_flags: ""
cleanup: "true"
Expand Down
1 change: 1 addition & 0 deletions .vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ MinAlertLevel = suggestion

[*.md]
BasedOnStyles = custom
BasedOnStyles = Vale.Spelling

Vocab = EN
16 changes: 0 additions & 16 deletions styles/custom/Spelling.yml
Original file line number Diff line number Diff line change
@@ -1,16 +0,0 @@
extends: spelling

message: "Detected non-American spelling. Consider using American spelling: '%s' instead of '%s."
level: warning

path: styles/custom/your-dictionary.dic

---

extends: existence

message: "Ignore specific patterns"
level: skip
tokens:
- '\bdbt\s+Cloud\b'
- '\bdbt\s+.*?\b'

0 comments on commit f5fe768

Please sign in to comment.