Skip to content

Commit

Permalink
Add Spellcheck for changed files to Analyze step (Azure#21118)
Browse files Browse the repository at this point in the history
* Add spell checking to ci

* Add cspell.json

* Add exceptions for false positives found in this PR
  • Loading branch information
danieljurek committed May 10, 2021
1 parent cab3d12 commit 46cb082
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"version": "0.1",
"language": "en",
"languageId": "java",
"dictionaries": ["powershell"],
"ignorePaths": [
"**/session-records/**",
"*.jar",
"*.zip",
"*.avro",
"*.war",
"*.gz",
"*.exe",
"*.png",
"*.jpg",
"*.pdf",
"*.tif",
"*.mdb",
"*.mp4",
"*.webp",
"*.vsdx",
"*.doc",
"*.svg",
"*.pfx",
"*.dawio",
"*.pem",
"*.jks",
"*._pfx",
"*.cer",
"*.exec",
"*.der",
"*.bmp",
"*.bin",
"*.pub",
"*.x509",
"*.certificate",
"*.crt",
".vscode/cspell.json"
],
"words": ["azsdk", "pwsh"],
"overrides": [
{
"filename": "**/eng/pipelines/templates/jobs/ci.yml",
"words": [
"dskip",
"dinject",
"codesnippets",
"dgenerate",
"dspotbugs",
"dcheckstyle",
"drevapi",
"dalt",
"apireview",
"setuptools",
"dgpg",
"dmaven",
"checkstyle",
"dverify"
]
}
],
"allowCompoundWords": false
}
2 changes: 2 additions & 0 deletions eng/pipelines/templates/jobs/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ jobs:
vmImage: MMSUbuntu18.04

steps:
- template: /eng/common/pipelines/templates/steps/check-spelling.yml

- pwsh: |
$(Build.SourcesDirectory)/eng/versioning/pom_file_version_scanner.ps1
displayName: "Verify versions in POM files"
Expand Down

0 comments on commit 46cb082

Please sign in to comment.