Skip to content

Commit

Permalink
Test vale lint (#4166)
Browse files Browse the repository at this point in the history
* Test vale lint

Signed-off-by: Ian Maddaus <[email protected]>

* Add something that should fail.

Signed-off-by: Ian Maddaus <[email protected]>

* Set file directories

Signed-off-by: Ian Maddaus <[email protected]>

* Remove offending text

Signed-off-by: Ian Maddaus <[email protected]>

* Test a vale warning

Signed-off-by: Ian Maddaus <[email protected]>

* More testing

Signed-off-by: Ian Maddaus <[email protected]>

* More testing

Signed-off-by: Ian Maddaus <[email protected]>

* More testing

Signed-off-by: Ian Maddaus <[email protected]>

* Revert some testing

Signed-off-by: Ian Maddaus <[email protected]>

* Remove test example

Signed-off-by: Ian Maddaus <[email protected]>

* Cleanup config files

Signed-off-by: Ian Maddaus <[email protected]>

* Additional note

Signed-off-by: Ian Maddaus <[email protected]>

* That space will bug me.

Signed-off-by: Ian Maddaus <[email protected]>

---------

Signed-off-by: Ian Maddaus <[email protected]>
  • Loading branch information
IanMadd authored Aug 25, 2023
1 parent e41d870 commit 973a9fe
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 73 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@ jobs:
- uses: actions/checkout@v3
- uses: errata-ai/vale-action@reviewdog
with:
files: '["archetypes", "assets", "content", "data", "layouts", "static", "themes"]'
vale_flags: "--config=tools/vale/.vale-github-action.ini"
filter_mode: diff_context
fail_on_error: true
11 changes: 7 additions & 4 deletions .vale.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
# Vale configuration file.
#
# This config file configures Vale when it's run locally.
# The tools/vale/.vale-github-action.ini file configures Vale when it's run by GitHub Actions.
#
# For more information, see https://vale.sh/docs/.

StylesPath = tools/vale/
MinAlertLevel = warning
MinAlertLevel = suggestion
SkippedScopes = code
Packages = Microsoft, write-good, Readability, Hugo
Packages = Microsoft, write-good, Hugo
Vocab = Chef

[*.md]
BasedOnStyles = chef, Microsoft, Readability, vale, write-good
[*.{md,yaml,yml}]
BasedOnStyles = chef, Microsoft, vale, write-good

# Ignore SVG markup
TokenIgnores = (\*\*\{\w*\}\*\*)
19 changes: 19 additions & 0 deletions tools/vale/.vale-github-action.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Vale configuration file.
#
# This config file is for Vale lints run by GitHub Actions.
# See the .github/workflows/lint.yml file.
# See the .vale.ini file in the project root for lints run on a local workstation.
#
# For more information, see https://vale.sh/docs/.

StylesPath = ../vale/
MinAlertLevel = error
SkippedScopes = code
Packages = Microsoft, write-good, Hugo
Vocab = Chef

[*.{md,yaml,yml}]
BasedOnStyles = chef, Microsoft, vale, write-good

# Ignore SVG markup
TokenIgnores = (\*\*\{\w*\}\*\*)
8 changes: 0 additions & 8 deletions tools/vale/Readability/AutomatedReadability.yml

This file was deleted.

8 changes: 0 additions & 8 deletions tools/vale/Readability/ColemanLiau.yml

This file was deleted.

8 changes: 0 additions & 8 deletions tools/vale/Readability/FleschKincaid.yml

This file was deleted.

8 changes: 0 additions & 8 deletions tools/vale/Readability/FleschReadingEase.yml

This file was deleted.

8 changes: 0 additions & 8 deletions tools/vale/Readability/GunningFog.yml

This file was deleted.

17 changes: 0 additions & 17 deletions tools/vale/Readability/LIX.yml

This file was deleted.

8 changes: 0 additions & 8 deletions tools/vale/Readability/SMOG.yml

This file was deleted.

4 changes: 0 additions & 4 deletions tools/vale/Readability/meta.json

This file was deleted.

0 comments on commit 973a9fe

Please sign in to comment.