Update
This commit is contained in:
parent
41d479fc45
commit
a5c0c01465
|
@ -3,7 +3,7 @@
|
|||
"caseSensitive": true,
|
||||
|
||||
// Enable your dictionary by adding it to the list of `dictionaries`
|
||||
"dictionaries": ["custom-words", "cpp", "git", "win32"],
|
||||
"dictionaries": ["custom-words"],
|
||||
|
||||
// Tell CSpell about your dictionary
|
||||
"dictionaryDefinitions": [
|
||||
|
|
|
@ -96,58 +96,14 @@ jobs:
|
|||
cspell: # run the cspell action
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: streetsidesoftware/cspell-action@v2
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
- name: Install node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
# Github token used to fetch the list of changed files in the commit.
|
||||
# Default: ${{ github.token }}
|
||||
github_token: '${{ github.token }}'
|
||||
|
||||
# Define glob patterns to filter the files to be checked. Use a new line between patterns to define multiple patterns.
|
||||
# The default is to check ALL files that were changed in in the pull_request or push.
|
||||
# Note: `ignorePaths` defined in cspell.json still apply.
|
||||
# Example:
|
||||
# files: |
|
||||
# **/*.{ts,js}
|
||||
# !dist/**/*.{ts,js}
|
||||
# # Hidden directories need an explicit .* to be included
|
||||
# .*/**/*.yml
|
||||
#
|
||||
# To not check hidden files, use:
|
||||
# files: "**"
|
||||
#
|
||||
# Default: ALL files
|
||||
files: |
|
||||
**/*.md
|
||||
!**/README.md
|
||||
!README.md
|
||||
|
||||
# Check files and directories starting with `.`.
|
||||
# - "true" - glob searches will match against `.dot` files.
|
||||
# - "false" - `.dot` files will NOT be checked.
|
||||
# - "explicit" - glob patterns can match explicit `.dot` patterns.
|
||||
check_dot_files: explicit
|
||||
|
||||
# The point in the directory tree to start spell checking.
|
||||
# Default: .
|
||||
root: '.'
|
||||
|
||||
# Notification level to use with inline reporting of spelling errors.
|
||||
# Allowed values are: warning, error, none
|
||||
# Default: warning
|
||||
inline: error
|
||||
|
||||
# Determines if the action should be failed if any spelling issues are found.
|
||||
# Allowed values are: true, false
|
||||
# Default: true
|
||||
strict: true
|
||||
|
||||
# Limit the files checked to the ones in the pull request or push.
|
||||
incremental_files_only: true
|
||||
|
||||
# Path to `cspell.json`
|
||||
config: '.github/cspell/cspell.json'
|
||||
|
||||
# Log progress and other information during the action execution.
|
||||
# Default: false
|
||||
verbose: false
|
||||
node-version: '16'
|
||||
cache: 'npm'
|
||||
- name: Install CSpell
|
||||
run: npm install -g cspell@latest
|
||||
- name: Check spelling
|
||||
run: npx cspell --no-progress --no-issues --config .github/cspell/cspell.json "**/*.md"
|
||||
|
|
Loading…
Reference in New Issue