diff options
author | Tim Smith <tsmith@chef.io> | 2020-07-10 18:17:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-10 18:17:28 -0700 |
commit | 224c422a0fabdb851debf6c5b23507651f5c607e (patch) | |
tree | 5399d165e48746c15aee63a2226715e0976ccc58 | |
parent | 8fe1efd502e85454c3e0319646d89583d6f17b38 (diff) | |
parent | 363a0516c730f0609e0f3198f1f547bcdb5a006d (diff) | |
download | chef-224c422a0fabdb851debf6c5b23507651f5c607e.tar.gz |
Merge pull request #10145 from chef/chefstyle
Minor chefstyle fixes in the spellcheck task
-rw-r--r-- | tasks/spellcheck.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tasks/spellcheck.rb b/tasks/spellcheck.rb index 5b185c1ed6..076173fa1d 100644 --- a/tasks/spellcheck.rb +++ b/tasks/spellcheck.rb @@ -20,19 +20,19 @@ namespace :spellcheck do sh "wget -q https://raw.githubusercontent.com/chef/chef_dictionary/master/chef.txt -O chef_dictionary.txt" end - task run: [:config_check, :fetch_common] do + task run: %i{config_check fetch_common} do sh 'cspell "**/*"' end desc "List the unique unrecognized words in the project." - task unknown_words: [:config_check, :fetch_common] do + task unknown_words: %i{config_check fetch_common} do sh 'cspell "**/*" --wordsOnly --no-summary | sort | uniq' end task :config_check do - require 'json' + require "json" - config_file = 'cspell.json' + config_file = "cspell.json" unless File.readable?(config_file) abort "Spellcheck config file '#{config_file}' not found, skipping spellcheck" |