summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2020-06-08 17:52:26 -0700
committerPete Higgins <pete@peterhiggins.org>2020-06-08 17:52:26 -0700
commitfb77309aecf220909bf4117219cb741c32120c07 (patch)
tree02c99477b6ae1e9ba25a51eb3ceb6830c62daf5a
parentadd160cf46ccd374e9278405cef88ca949c519b6 (diff)
downloadchef-fb77309aecf220909bf4117219cb741c32120c07.tar.gz
Avoid spellchecking files twice in one run.fail-early-with-cspell-syntax-error
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
-rw-r--r--.expeditor/verify_public.pipeline.yml2
-rw-r--r--Rakefile4
2 files changed, 3 insertions, 3 deletions
diff --git a/.expeditor/verify_public.pipeline.yml b/.expeditor/verify_public.pipeline.yml
index 44cb2626c6..ae750546f0 100644
--- a/.expeditor/verify_public.pipeline.yml
+++ b/.expeditor/verify_public.pipeline.yml
@@ -576,7 +576,7 @@ steps:
commands:
- ruby -rjson -e "JSON.parse(File.read('cspell.json'))" 2>/dev/null || (echo "Failed to parse config file 'cspell.json', skipping spellcheck" && exit 1)
- npm install -g cspell
- - cspell "**/*" "*.md"
+ - cspell "**/*"
expeditor:
executor:
docker:
diff --git a/Rakefile b/Rakefile
index fde45aa46c..2949b31cb7 100644
--- a/Rakefile
+++ b/Rakefile
@@ -111,12 +111,12 @@ end
namespace :spellcheck do
task :run do
- sh 'cspell "**/*" "*.md"'
+ sh 'cspell "**/*"'
end
desc "List the unique unrecognized words in the project."
task :unknown_words do
- sh 'cspell "**/*" "*.md" --wordsOnly --no-summary | sort | uniq'
+ sh 'cspell "**/*" --wordsOnly --no-summary | sort | uniq'
end
end