Skip to content

Commit

Permalink
Merge branch 'test-vale' into test-vale-pr
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 authored Jun 17, 2024
2 parents 71e509a + 67229ce commit 1e388a9
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 16 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/vale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:

- name: Install Vale
uses: errata-ai/vale-action@v2
with:
version: latest

- name: Get changed files
id: changed-files
Expand All @@ -37,8 +39,7 @@ jobs:
run: |
for file in ${{ env.CHANGED_FILES }}; do
echo "Running Vale on $file"
vale --output=JSON $file > "vale_output_${file//\//_}.json"
vale --output=edit $file > "vale_output_${file//\//_}_edit.md"
vale --output=line "$file"
done
echo "Vale outputs:"
ls -l
Expand Down
7 changes: 5 additions & 2 deletions styles/custom/SentenceCaseHeaders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ extends: existence

message: "Header '%s' should be in sentence case: 'Sentence case header'."
level: warning
scope: heading
ignorecase: false
scope:
- heading.h1
- heading.h2
- heading.h3
- heading.h4
tokens: |
^[#]{1,4}\s+[a-z][^\n]*$
11 changes: 0 additions & 11 deletions styles/custom/Spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,6 @@ extends: spelling

message: "Detected non-American spelling. Consider using American spelling: '%s' instead of '%s."
level: warning
ignore:
- dbt
- dbt Cloud
- ETL
- ELT
- DAG
- CTE
- DDL
- DML
- JSON
- CI/CD

path: styles/custom/your-dictionary.dic

Expand Down
14 changes: 13 additions & 1 deletion styles/custom/Typos.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends: substitution

message: "Possible typo detected: Consider using '%s' instead of '%s'"
message: "Oops there's a typo! Consider changing '{{.Match}}' to '{{.Suggestions}}.'"
level: warning
swap:
- teh: the
Expand All @@ -10,5 +10,17 @@ swap:
- occured: occurred
- untill: until

ignore:
- dbt
- dbt Cloud
- ETL
- ELT
- DAG
- CTE
- DDL
- DML
- JSON
- CI/CD

action:
name: replace

0 comments on commit 1e388a9

Please sign in to comment.