Skip to content

Commit

Permalink
lets try the undocumented globRoot
Browse files Browse the repository at this point in the history
  • Loading branch information
jakoch committed Jun 20, 2024
1 parent 71ccabd commit 48e7382
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ jobs:

- name: 🙏 Check Spelling using cspell
run: |
export CSPELL_OUTPUT=$(sudo cspell -c cspell.json --no-summary .)
export CSPELL_OUTPUT=$(sudo cspell lint --no-summary --no-progress .)
if [ -n "$CSPELL_OUTPUT" ]; then echo "$CSPELL_OUTPUT" && exit 1; fi;
68 changes: 68 additions & 0 deletions build-tools/cspell/cspell.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"version": "0.2",
"id": "csgo-cli-cspell-config",
"name": "csgo-cli cspell Config",
"language": "en-US,de-DE",
"globRoot": "../../",
"files": [
"*.md",
"docs/**/*.md",
"src/**/*.h",
"src/**/*.cpp",
"tests/**/*.h",
"tests/**/*.cpp"
],
"ignorePaths": [
".git/*/**",
".git/!(COMMIT_EDITMSG)",
".vscode/**",
".clang-format",
"*.lock",
"*.log",
"*.json",
"*.cmake",
"*.bat",
"Changelog.md",
"CMakeLists.txt",
"cspell.json",
"cspell*.{json,yaml}",
"node_modules/**",
"build-tools/**",
"cmake/**",
"dependencies/**",
"downloads/**",
"out/**",
"resources/**",
"vcpkg_packages/**",
"src/ShareCode.cpp",
"src/ShareCode.h",
"tests/ShareCodeUpload.tests.cpp",
"src/steamapi/steamapi.cpp",
"/src/VersionAndConstants.h.in"
],
"dictionaryDefinitions": [
{
"name": "repo-words",
"addWords": true,
"scope": [
"workspace"
],
"path": "./repo-words.txt",
"description": "A list of words related to this repository."
}
],
"dictionaries": [
"repo-words"
],
"languageSettings": [
{
"languageId": "*",
"allowCompoundWords": false
},
{
"languageId": "markdown",
"caseSensitive": true
}
]
}
46 changes: 0 additions & 46 deletions build-tools/cspell/cspell.config.yml

This file was deleted.

3 changes: 3 additions & 0 deletions build-tools/cspell/repo-words.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
accountid
APIKEY
appveyor
BINARYNAME
bitnum
cloudflare
cmake
commentpermission
communityvisibilitystate
Expand Down Expand Up @@ -61,6 +63,7 @@ sharecode
sharecodes
Sharecodes
spdlog
sqlite
steamapi
steamdb
STEAMGAMECOORDINATOR
Expand Down
2 changes: 1 addition & 1 deletion cspell.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"import": [
"build-tools/cspell/cspell.config.yml"
"build-tools/cspell/cspell.config.json"
]
}

0 comments on commit 48e7382

Please sign in to comment.