Skip to content

Commit

Permalink
.azurepipelines/BuildAndTest.yml: Add markdownlint and spell check
Browse files Browse the repository at this point in the history
- Run spell check against .md, .py, and .rs files in the repo
- Run markdownlint against .md files in the repo

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
  • Loading branch information
makubacki committed Sep 21, 2023
1 parent c38bf6a commit e20361e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .azurepipelines/BuildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,14 @@ jobs:
fetchDepth: 1
clean: true

# Only run on Windows since it does not use a container and can
# depend on a wider toolset provided in the VM image.
- ${{ if eq(item.Value.ImageName, 'windows-latest') }}:
- template: Steps/InstallMarkdownLint.yml@mu_devops
- template: Steps/RunMarkdownLint.yml@mu_devops
- template: Steps/InstallSpellCheck.yml@mu_devops
- template: Steps/RunSpellCheck.yml@mu_devops
parameters:
spell_check_parameters: "-c cspell.json **/*.md **/*.py **/*.rs"
- template: Steps/RustSetupSteps.yml@mu_devops
- template: Steps/RustCargoSteps.yml@mu_devops
26 changes: 26 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"version": "0.2",
"language": "en",
"dictionaries": [
"companies ",
"softwareTerms",
"python",
"rust"
],
"ignorePaths": [
"*.pdb",
"**/*_extdep/**",
"*.pdf",
"*.exe",
"*.jpg"
],
"minWordLength": 5,
"allowCompoundWords": true,
"maxNumberOfProblems": 200,
"maxDuplicateProblems": 200,
"ignoreWords": [
],
"words": [
"upvote"
]
}

0 comments on commit e20361e

Please sign in to comment.