Skip to content

Commit

Permalink
Add languagetool check (#97)
Browse files Browse the repository at this point in the history
* Add languagetool check via reviewdog

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).
However 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.
  • Loading branch information
johnboyes authored Apr 23, 2020
1 parent 117bbad commit 74223c5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,16 @@ jobs:
with:
github_token: ${{ secrets.github_token }}
reporter: github-check

languagetool:
name: runner / languagetool
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: reviewdog/action-languagetool@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-check
patterns: |
**/*.md
language: en

0 comments on commit 74223c5

Please sign in to comment.