This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
54 lines (53 loc) · 1.8 KB
/
spellcheck-enhanced.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
name: "Enhanced Spellcheck"
"on":
push:
branches: [main]
paths-ignore:
- '**.sh'
pull_request:
paths-ignore:
- '**.sh'
jobs:
spell-check:
name: "Language tool & Misspell check"
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@v4
- name: running language tool
uses: reviewdog/action-languagetool@v1
with:
github_token: ${{ secrets.github_token }}
# Change reviewdog reporter if you need:
# [github-pr-check,github-check,github-pr-review].
reporter: github-check
# Change reporter level if you need.
level: warning
language: en-US
disabled_categories: TYPOS,TYPOGRAPHY,CASING
disabled_rules: WHITESPACE_RULE,EN_QUOTES,DASH_RULE,\
WORD_CONTAINS_UNDERSCORE,\
UPPERCASE_SENTENCE_START,\
ARROWS,COMMA_PARENTHESIS_WHITESPACE,\
UNLIKELY_OPENING_PUNCTUATION,SENTENCE_WHITESPACE,\
CURRENCY,EN_UNPAIRED_BRACKETS,PHRASE_REPETITION,\
PUNCTUATION_PARAGRAPH_END,METRIC_UNITS_EN_US,\
ENGLISH_WORD_REPEAT_BEGINNING_RULE,DOUBLE_PUNCTUATION,
enabled_only: false
enabled_rules:
enabled_categories:
patterns: "**.md"
- name: running misspell
# To perform misspell check even after the language tool test fails
if: success() || failure()
uses: reviewdog/action-misspell@v1
with:
github_token: ${{ secrets.github_token }}
locale: "US"
reporter: github-check
level: info
pattern: "**.md"
exclude: |
./.git/*
./.cache/*