From f5fe768616054ac23688d11c72b90c1f1685d3a2 Mon Sep 17 00:00:00 2001 From: mirnawong1 Date: Mon, 17 Jun 2024 12:03:36 +0100 Subject: [PATCH] add --- .github/workflows/vale.yml | 10 ++-------- .vale.ini | 1 + styles/custom/Spelling.yml | 16 ---------------- 3 files changed, 3 insertions(+), 24 deletions(-) diff --git a/.github/workflows/vale.yml b/.github/workflows/vale.yml index a04a453162e..5713c5d9511 100644 --- a/.github/workflows/vale.yml +++ b/.github/workflows/vale.yml @@ -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: | @@ -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" diff --git a/.vale.ini b/.vale.ini index edbd97348c0..e9388121025 100644 --- a/.vale.ini +++ b/.vale.ini @@ -3,5 +3,6 @@ MinAlertLevel = suggestion [*.md] BasedOnStyles = custom +BasedOnStyles = Vale.Spelling Vocab = EN diff --git a/styles/custom/Spelling.yml b/styles/custom/Spelling.yml index edafa517926..e69de29bb2d 100644 --- a/styles/custom/Spelling.yml +++ b/styles/custom/Spelling.yml @@ -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'