Skip to content

Commit b2ae6fd

Browse files
CptWesleyCorniel
andauthored
Add Reviewdog LanguageTool github action (#84)
* Add Reviewdog LanguageTool github action * no message * Add intentional error * no message * no message * no message * Add misspell * no message * Update reviewdog-languagetool.yaml * Update rules/Proj0001.md * no message * no message * no message * Split pipelines * no message * no message * no message * no message * no message * Fix all found misspell errors * Fix LanguageTool errors * no message --------- Co-authored-by: Corniel Nobel <[email protected]>
1 parent 8563721 commit b2ae6fd

File tree

14 files changed

+59
-12
lines changed

14 files changed

+59
-12
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Reviewdog LanguageTool
2+
on: [pull_request]
3+
jobs:
4+
languagetool:
5+
runs-on: ubuntu-latest
6+
permissions:
7+
contents: read
8+
checks: write
9+
issues: write
10+
pull-requests: write
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: reviewdog/[email protected]
14+
with:
15+
github_token: ${{ secrets.GITHUB_TOKEN }}
16+
reporter: github-pr-review
17+
level: error
18+
language: 'en-US'
19+
patterns: '**/*.md **/*.MD **/*.txt **/*.TXT'
20+
disabled_categories: ''
21+
disabled_rules: 'MORFOLOGIK_RULE_EN_US'
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Reviewdog Misspell
2+
on: [pull_request]
3+
jobs:
4+
misspell:
5+
runs-on: ubuntu-latest
6+
permissions:
7+
contents: read
8+
checks: write
9+
issues: write
10+
pull-requests: write
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: reviewdog/[email protected]
14+
with:
15+
github_token: ${{ secrets.GITHUB_TOKEN }}
16+
reporter: github-pr-review
17+
level: error
18+
locale: "US"
19+
pattern: |
20+
*.md
21+
*.MD
22+
*.txt
23+
*.TXT
24+
filter_mode: nofilter
25+
fail_level: none
26+
fail_on_error: false

general/sdk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ directory conting the [Git](https://en.wikipedia.org/wiki/Git) repo), you
2929

3030
Most files in the directory of this SDK project will be included automatically.
3131
This includes configuration, text, and markdown files. It will not contain any
32-
`<Compile>` items unless explictly added. The SDK project is not intended to
32+
`<Compile>` items unless explicitly added. The SDK project is not intended to
3333
contain `<Compile>` items, and the binary output is hidden for that reason.
3434

3535
All automatically included files and files added as `<AdditionalFiles>` are

general/sonar-integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ developers.
2626
## Sonarcloud integration
2727
There is currently no *'elegant'* solution to have the warnings show up on SonarCloud,
2828
however, there is a workaround. By adding the `.??proj` and `.props` files as content,
29-
SonarCloud will recognise it's warnings and pick them up, same as any warnings in the
29+
SonarCloud will recognize its warnings and pick them up, same as any warnings in the
3030
code.
3131

3232
For Example:

rules/Proj0015.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ancestor: MSBuild
77
`<PackageReference>` nodes should be ordered alphabetically
88
within a single `<ItemGroup>` in order to make it more
99
human readable. When ordering the references based on
10-
other criteria, consider grouping them in seperate
10+
other criteria, consider grouping them in separate
1111
`<ItemGroup>`s.
1212

1313
## Non-compliant

rules/Proj0016.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ancestor: MSBuild
77
`<ProjectReference>` nodes should be ordered alphabetically
88
within a single `<ItemGroup>` in order to make it more
99
human readable. When ordering the references based on
10-
other criteria, consider grouping them in seperate
10+
other criteria, consider grouping them in separate
1111
`<ItemGroup>`s.
1212

1313
## Non-compliant

rules/Proj0018.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ancestor: MSBuild
66
# Proj0018: Order using directives by type
77
`<Using>` nodes should be ordered by type for consistency within a single
88
`<ItemGroup>`. When ordering the imports based on other criteria, consider
9-
grouping them in seperate `<ItemGroup>`s.
9+
grouping them in separate `<ItemGroup>`s.
1010

1111
## Non-compliant
1212
``` xml

rules/Proj0019.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ancestor: MSBuild
66
# Proj0019: Order using directives alphabetically
77
`<Using>` nodes should be ordered alphabetically within a single `<ItemGroup>`
88
in order to make it more human readable. When ordering the references based on
9-
other criteria, consider grouping them in seperate `<ItemGroup>`s.
9+
other criteria, consider grouping them in separate `<ItemGroup>`s.
1010

1111
## Non-compliant
1212
``` xml

rules/Proj0021.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ancestor: MSBuild
66
# Proj0021: Build actions should have a single task
77
`<ItemGroup>` build taks nodes such as `<Compile>`, `<Content>`, `<EmbeddedResource>`,
88
`<None>`, and `<AdditionalFiles` should only have on task. Assigning multiple
9-
tasks to a single node seperated by semicolons (`;`) leads to longer lines
9+
tasks to a single node separated by semicolons (`;`) leads to longer lines
1010
that are harder to read and maintain.
1111

1212
## Non-compliant

rules/Proj0024.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ancestor: MSBuild
77
`<PackageVersion>` nodes should be ordered alphabetically
88
within a single `<ItemGroup>` in order to make it more
99
human readable. When ordering the versions based on
10-
other criteria, consider grouping them in seperate
10+
other criteria, consider grouping them in separate
1111
`<ItemGroup>`s.
1212

1313
## Non-compliant

0 commit comments

Comments
 (0)