Skip to content

Commit

Permalink
ci(CSpell): Add win32 dictionary
Browse files Browse the repository at this point in the history
"LTSC" and "Nanoserver" were added to the win32 dictionary upstream. As
the win32 dictionary is large, it is not bundled with
@cspell/cspell-bundled-dicts, so install it via a MegaLinter
pre-command, and instruct CSpell to import it.
  • Loading branch information
Kurt-von-Laven committed Mar 28, 2023
1 parent ef9b295 commit f4d23f7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .dictionary.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Laven
ltsc
nanoserver
npmpackagejsonlintignore
trivyignore
2 changes: 2 additions & 0 deletions .mega-linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ JSON_PRETTIER_FILE_EXTENSIONS:
MARKDOWN_MARKDOWNLINT_CONFIG_FILE: .markdownlint.yaml
REPOSITORY_CHECKOV_CONFIG_FILE: LINTER_DEFAULT
SPELL_CSPELL_CONFIG_FILE: LINTER_DEFAULT
SPELL_CSPELL_PRE_COMMANDS:
- command: npm install @cspell/[email protected]
TYPESCRIPT_DEFAULT_STYLE: prettier
# Work around https://github.com/oxsecurity/megalinter/issues/1572.
TYPESCRIPT_ES_CLI_LINT_MODE: project
Expand Down
3 changes: 3 additions & 0 deletions cspell.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ language: en-US
useGitignore: true
ignorePaths:
- .vscode
import:
- "@cspell/dict-win32/cspell-ext.json"
dictionaryDefinitions:
- name: custom
path: .dictionary.txt
Expand All @@ -13,3 +15,4 @@ dictionaries:
- npm
- python
- python-common
- win32

0 comments on commit f4d23f7

Please sign in to comment.