Skip to main content

check-spelling

Check and fix spelling in project source files using cSpell.

소스 정보

저장소
Azure/azure-sdk-for-rust
최근 소스 활동
2026년 7월 28일 20:42
감지된 SKILL.md 언어
영어
스타
885
포크
375

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
check-spelling
description
Check and fix spelling in project source files using cSpell.
# Spell checking ## Usage Get all staged and unstaged non-deleted files, then pipe them to the spell check script: ```bash { git diff --staged --name-only --diff-filter=d; git diff --name-only --diff-filter=d; } | sort -u | ./eng/common/spelling/Invoke-Cspell.ps1 ``` ## Configuration The root configuration is `.vscode/cspell.json`, and CI runs cSpell with this config via `eng/common/spelling/Invoke-Cspell.ps1`. Each service directory (e.g., `sdk/{service-directory}`) or crate directory (e.g., `sdk/{service-directory}/{crate-directory}`) can have a `.cspell.json` that should `import` either a parent `.cspell.json` or `.vscode/cspell.json` from the root of the repo. Per-directory configs are loaded based on the paths of files being checked. ## Fix spelling Show a summary of the misspellings to the user. Prompt the user for which words should be replaced and which should be ignored. For words that should be replaced, fix the misspellings directly in the source files. If you cannot confidently determine the correct spelling, ask the user. For words that should be ignored, add them to the `ignoreWords` array in a `.cspell.json` file under `sdk/{service-directory}` or lower. If the file doesn't exist, create it with an `import` of either a parent `.cspell.json` or `../../.vscode/cspell.json` from the root of the repo. Example `sdk/keyvault/.cspell.json`: ```json { "import": [ "../../.vscode/cspell.json" ], "ignoreWords": [ "ciphertext", "purgeable" ] } ``` Seldom used words can be ignored within the file they are used by adding an appropriate comment e.g.: ```js // cspell:ignore {word} ``` To disable cSpell for just the next line, use `cspell:disable-next-line`. ## Testing Run the same command again used to check spelling. All misspellings should be fixed.
GitHub에서 보기