Skip to content

Commit a43b29e

Browse files
authored
Add languagetool check via reviewdog (#7)
https://github.com/reviewdog/action-languagetool https://languagetool.org/ https://github.com/languagetool-org/languagetool Use en locale for languagetool checks Use `en` as it does not do spell checking, whereas if we use `en-gb` `en-gb` then it flags errors for the US spelling of `LICENSE` (which is what it should do). As LICENSE is the conventional name for the licence file, we don't want it to be reported. Our spell checking is done by misspell (which we have set to allow UK or US variants e.g. colour and color), so we don't want languagetool to do spell checking anyway.
1 parent f08779b commit a43b29e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/reviewdog.yml

+13
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,16 @@ jobs:
5151
with:
5252
github_token: ${{ secrets.github_token }}
5353
reporter: github-check
54+
55+
languagetool:
56+
name: runner / languagetool
57+
runs-on: ubuntu-latest
58+
steps:
59+
- uses: actions/checkout@v2
60+
- uses: reviewdog/action-languagetool@v1
61+
with:
62+
github_token: ${{ secrets.github_token }}
63+
reporter: github-check
64+
patterns: |
65+
**/*.md
66+
language: en

0 commit comments

Comments
 (0)