summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2020-05-13 13:12:51 -0700
committerTim Smith <tsmith84@gmail.com>2020-05-18 20:29:40 -0700
commitd1443a2565b6a9298df1e588731d623454cb04e7 (patch)
treea01c9f0c16ca435e046621b2e14f891380ffdeab
parent6cfbf518fc8f8786210af279a7cd65f6b6a79ddb (diff)
downloadchef-d1443a2565b6a9298df1e588731d623454cb04e7.tar.gz
Remove check for cspell from Rakefile.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
-rw-r--r--Rakefile20
1 files changed, 8 insertions, 12 deletions
diff --git a/Rakefile b/Rakefile
index de956ded01..5d09fc1f45 100644
--- a/Rakefile
+++ b/Rakefile
@@ -109,18 +109,14 @@ rescue LoadError
puts "yard is not available. bundle install first to make sure all dependencies are installed."
end
-if `command -v cspell`.empty?
- puts "cspell is not available. Run `npm install -g cspell` to make it available."
-else
- namespace :spellcheck do
- task :run do
- sh 'cspell "**/*" "*.md"'
- end
-
- task :unknown_words do
- sh 'cspell "**/*" "*.md" --wordsOnly --no-summary | sort | uniq'
- end
+namespace :spellcheck do
+ task :run do
+ sh 'cspell "**/*" "*.md"'
end
- task spellcheck: 'spellcheck:run'
+ task :unknown_words do
+ sh 'cspell "**/*" "*.md" --wordsOnly --no-summary | sort | uniq'
+ end
end
+
+task spellcheck: 'spellcheck:run'