Skip to content

Commit

Permalink
ci: configure vale and reviewdog
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckadams committed Dec 22, 2024
1 parent aa31b84 commit 430e872
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 4 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ jobs:
name: Spellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: errata-ai/[email protected]
- name: Checkout
uses: actions/checkout@v4

- name: Spellcheck
uses: errata-ai/[email protected]
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
3 changes: 3 additions & 0 deletions .vale.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# https://vale.sh/docs/topics/config/
StylesPath = .vale
MinAlertLevel = suggestion

# https://vale.sh/docs/topics/vocab/
Vocab = AspirePress, Technical, Misc

[*.md]
Expand Down
6 changes: 6 additions & 0 deletions .vale/config/vocabularies/AspirePress/accept.txt
Original file line number Diff line number Diff line change
@@ -1,3 +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
5 changes: 5 additions & 0 deletions .vale/config/vocabularies/AspirePress/reject.txt
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Governance

Governance documentation for AspirePress. You can view this documentation at
[AspirePress Governance](https://governance.aspirepress.org).
Governance documentation for AspirePress. You can view this documentation at
[AspirePress Governance](https://governance.aspirepress.org).

0 comments on commit 430e872

Please sign in to comment.