From 6533539c5d0777dfa3fb57b58ba8cf05cdd5d05f Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Mon, 3 Jan 2022 14:25:05 -0800 Subject: [PATCH] Add spell check warnings (#16656) * Add spell check warnings * Basic cspell.json * Ignore files in .vscode except cspell.json, new line before EOF in cspell.json * Spell check, ignore thyself --- .gitignore | 4 ++ .vscode/cspell.json | 56 +++++++++++++++++++ .../templates/jobs/archetype-sdk-client.yml | 2 + 3 files changed, 62 insertions(+) create mode 100644 .vscode/cspell.json diff --git a/.gitignore b/.gitignore index 6a6c28b77a6f..3ce3ffd7ba02 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,7 @@ vendor/ # environment variables .env + +# vscode +**/.vscode/* +!.vscode/cspell.json diff --git a/.vscode/cspell.json b/.vscode/cspell.json new file mode 100644 index 000000000000..248a2010ea15 --- /dev/null +++ b/.vscode/cspell.json @@ -0,0 +1,56 @@ +{ + "version": "0.2", + "language": "en", + "languageId": "golang", + "dictionaries": [ + "powershell", + "golang", + "softwareTerms", + "en_US", + "en-gb" + ], + "ignorePaths": [ + "eng/common/**", + ".vscode/cspell.json", + "*.PNG", + "*.pfx", + "**/recordings/**/*" + ], + "words": [ + "azcore", + "azidentity", + "unpopulate", + "etag", + "stretchr", + "Unmarshaller", + "AMQP", + "Kusto", + "azblob", + "Kubernetes", + "vnet", + "skus", + "azservicebus", + "azcosmos", + "Reimage", + "nolint", + "armkusto", + "msix", + "armiotsecurity", + "odata", + "mgmt", + "armkubernetesconfiguration", + "azruntime" + ], + "allowCompoundWords": true, + "overrides": [ + { + "filename": "{*.sum,*.mod}", + "words": [ + "davecgh", + "pmezard", + "gover", + "objx" + ] + } + ] +} diff --git a/eng/pipelines/templates/jobs/archetype-sdk-client.yml b/eng/pipelines/templates/jobs/archetype-sdk-client.yml index f2916275f0ad..85d9a5b2c42d 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-client.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-client.yml @@ -134,6 +134,8 @@ stages: name: azsdk-pool-mms-ubuntu-2004-general steps: + - template: /eng/common/pipelines/templates/steps/check-spelling.yml + - task: GoTool@0 inputs: version: '1.17'