diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml new file mode 100644 index 0000000..ba78198 --- /dev/null +++ b/.github/workflows/spellcheck.yml @@ -0,0 +1,25 @@ +name: Spellcheck + +on: + pull_request: + push: + branches: [ main ] + +jobs: + vale: + name: Spellcheck + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Spellcheck + uses: errata-ai/vale-action@v2.1.1 + with: + version: latest + files: all + debug: false + reporter: github-check # https://github.com/reviewdog/reviewdog#reporters + fail_on_error: true + level: error + filter_mode: added diff --git a/.vale.ini b/.vale.ini new file mode 100644 index 0000000..08596d6 --- /dev/null +++ b/.vale.ini @@ -0,0 +1,9 @@ +# https://vale.sh/docs/topics/config/ +StylesPath = .vale +MinAlertLevel = suggestion + +# https://vale.sh/docs/topics/vocab/ +Vocab = AspirePress, Technical, Misc + +[*.md] +BasedOnStyles = Vale diff --git a/.vale/config/vocabularies/AspirePress/accept.txt b/.vale/config/vocabularies/AspirePress/accept.txt new file mode 100644 index 0000000..2c3ff2b --- /dev/null +++ b/.vale/config/vocabularies/AspirePress/accept.txt @@ -0,0 +1,9 @@ +# accept.txt - words considered acceptable spellings +# +# lines beginning with '#' are ignored. +# each line is one word or regex, and is case-sensitive. +# prefix with (?i) to make case-insensitive. + +AspirePress +ClassicPress +WordPress diff --git a/.vale/config/vocabularies/AspirePress/reject.txt b/.vale/config/vocabularies/AspirePress/reject.txt new file mode 100644 index 0000000..7f13418 --- /dev/null +++ b/.vale/config/vocabularies/AspirePress/reject.txt @@ -0,0 +1,5 @@ +# reject.txt - words always considered to be spelling errors +# +# lines beginning with '#' are ignored. +# each line is one word or regex, and is case-sensitive. +# prefix with (?i) to make case-insensitive. diff --git a/.vale/config/vocabularies/Misc/accept.txt b/.vale/config/vocabularies/Misc/accept.txt new file mode 100644 index 0000000..6ae3617 --- /dev/null +++ b/.vale/config/vocabularies/Misc/accept.txt @@ -0,0 +1 @@ +hominem diff --git a/.vale/config/vocabularies/Technical/accept.txt b/.vale/config/vocabularies/Technical/accept.txt new file mode 100644 index 0000000..52329bb --- /dev/null +++ b/.vale/config/vocabularies/Technical/accept.txt @@ -0,0 +1,3 @@ +(?i)css +(?i)nginx +(?i)webpack diff --git a/README.md b/README.md index 38c3903..a333972 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ # Governance -Governance documentation for AspirePress. You can view this documentation at -[AspirePress Governance](https://governance.aspirepress.org). \ No newline at end of file +Governance documentation for AspirePress. You can view this documentation at +[AspirePress Governance](https://governance.aspirepress.org).