Skip to content

Commit

Permalink
add files section to cspell.config.yml instead of passing it on the cli
Browse files Browse the repository at this point in the history
  • Loading branch information
jakoch committed Jun 20, 2024
1 parent 51712f1 commit 495db8b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 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 --config cspell.json --no-summary "*.txt" "*.md" "docs/*.md" "src/**/*.h" "src/**/*.cpp" "tests/**/*.h" "tests/**/*.cpp")
export CSPELL_OUTPUT=$(sudo cspell --config cspell.json --no-summary)
if [ -n "$CSPELL_OUTPUT" ]; then echo "$CSPELL_OUTPUT" && exit 1; fi;
11 changes: 9 additions & 2 deletions build-tools/cspell/cspell.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,25 @@ $schema: https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell
version: "0.2"
language: en-US,de-DE

files:
- '*.md'
- docs/*.md
- src/**/*.h
- src/**/*.cpp
- tests/**/*.h
- tests/**/*.cpp
ignorePaths:
- .git/*/**
- .git/!(COMMIT_EDITMSG)
- .vscode
- .clang-format
- vcpkg.json
- '*.lock'
- '*.log'
- '*.json'
- '*.cmake'
- cspell.json
- cspell*.{json,yaml}
- CMakeLists.txt
- ./CMakeLists.txt
- /build-tools
- /cmake
- /dependencies
Expand All @@ -37,3 +42,5 @@ dictionaries:
languageSettings:
- languageId: '*'
allowCompoundWords: false
- languageId: 'markdown'
caseSensitive: true

0 comments on commit 495db8b

Please sign in to comment.