Repository navigation
Replies: 1 comment
|
You can share syntax exclusions, rather than adding each option string or action owner to the word list. CSpell supports JavaScript regular expressions in For the two forms shown, a reusable version: '0.2'
languageSettings:
- languageId: shellscript
ignoreRegExpList:
- '/^[ \t]*set[ \t]+-[A-Za-z]+\b/gm'
overrides:
- filename: '**/.github/workflows/*.{yml,yaml}'
ignoreRegExpList:
- '/^[ \t]*(?:-[ \t]*)?uses:[ \t]*[^#\r\n]+/gm'The first pattern excludes the Then each project can import that file: import:
- ../shared/cspell-common.yamlImports are merged into the project's configuration, so the same rules can be maintained in one shared configuration instead of growing per-project word lists. This also leaves action names outside those workflow values subject to normal spelling checks. I have not run these patterns against your repositories. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
While I love cspell, there are some recurring pain points when running it over code, where it fails to ignore some blocks which are not supposed to be valid words. Most common stuff like:
I am looking for solution that would work for all project, so I would have to add more ignore words.
All reactions