Prevent agents from adding misspellings to .cspell.yaml word list#26
Merged
Malcolmnixon merged 4 commits intomainfrom Mar 19, 2026
Merged
Conversation
Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update linting documentation and .cspell.yaml comments
Prevent agents from adding misspellings to .cspell.yaml word list
Mar 19, 2026
Malcolmnixon
requested changes
Mar 19, 2026
Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
Malcolmnixon
approved these changes
Mar 19, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the repository’s spell-checking guidance to prevent bypassing cspell by adding misspellings to the .cspell.yaml word list, aligning linting documentation with a stricter word-list policy.
Changes:
- Tightens
.cspell.yamlheader guidance to discourage adding misspellings to the word list. - Updates
docs/linting.mdto replace the “extend as the project grows” guidance with an explicit word-list policy section.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| templates/lint/.cspell.yaml | Adds policy-oriented comments above the cspell configuration/word list. |
| docs/linting.md | Documents a stricter word-list policy and removes open-ended guidance about extending the list. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Contributor
|
@copilot apply changes based on the comments in this thread |
…ded' Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
Malcolmnixon
approved these changes
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agents have been bypassing spell-checking by adding misspelled words to
.cspell.yaml, defeating its purpose. This adds explicit policy guardrails in both the config file and documentation..cspell.yamlAdds a prominent
IMPORTANTblock at the top of the file:docs/linting.md📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.