mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
ci: Enable cspell on test on dotfiles too
Noticed this because pre-commit would try to run on dotfiles as well (will CI ignored it)
This commit is contained in:
parent
b92144180f
commit
28bfac3c3c
2 changed files with 4 additions and 1 deletions
2
.github/workflows/code-quality.yml
vendored
2
.github/workflows/code-quality.yml
vendored
|
@ -154,7 +154,7 @@ jobs:
|
|||
cfg_files=($(shopt -s nullglob ; echo {.vscode,.}/{,.}c[sS]pell{.json,.config{.js,.cjs,.json,.yaml,.yml},.yaml,.yml} ;))
|
||||
cfg_file=${cfg_files[0]}
|
||||
unset CSPELL_CFG_OPTION ; if [ -n "$cfg_file" ]; then CSPELL_CFG_OPTION="--config $cfg_file" ; fi
|
||||
S=$(cspell ${CSPELL_CFG_OPTION} --no-summary --no-progress "**/*") && printf "%s\n" "$S" || { printf "%s\n" "$S" ; printf "%s" "$S" | sed -E -n "s/${PWD//\//\\/}\/(.*):(.*):(.*) - (.*)/::${fault_type} file=\1,line=\2,col=\3::${fault_type^^}: \4 (file:'\1', line:\2)/p" ; fault=true ; true ; }
|
||||
S=$(cspell ${CSPELL_CFG_OPTION} --no-summary --no-progress .) && printf "%s\n" "$S" || { printf "%s\n" "$S" ; printf "%s" "$S" | sed -E -n "s/${PWD//\//\\/}\/(.*):(.*):(.*) - (.*)/::${fault_type} file=\1,line=\2,col=\3::${fault_type^^}: \4 (file:'\1', line:\2)/p" ; fault=true ; true ; }
|
||||
if [ -n "${{ steps.vars.outputs.FAIL_ON_FAULT }}" ] && [ -n "$fault" ]; then exit 1 ; fi
|
||||
|
||||
toml_format:
|
||||
|
|
3
.vscode/cSpell.json
vendored
3
.vscode/cSpell.json
vendored
|
@ -19,6 +19,7 @@
|
|||
|
||||
// files to ignore (globs supported)
|
||||
"ignorePaths": [
|
||||
".git/**",
|
||||
"Cargo.lock",
|
||||
"oranda.json",
|
||||
"target/**",
|
||||
|
@ -28,6 +29,8 @@
|
|||
"**/*.svg"
|
||||
],
|
||||
|
||||
"enableGlobDot": true,
|
||||
|
||||
// words to ignore (even if they are in the flagWords)
|
||||
"ignoreWords": [],
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue