diff --git a/README.md b/README.md index 5f27c534..59d5874f 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/Shopif To contribute a new cop, please use the supplied generator like this: ```sh -bundle exec rake new_cop[Sorbet/NewCopName] +bundle exec rake "new_cop[Sorbet/NewCopName]" ``` which will create a skeleton cop, a skeleton spec, an entry in the default config file and will require the new cop so that it is properly exported from the gem. diff --git a/Rakefile b/Rakefile index 59d5e511..b64d47ec 100644 --- a/Rakefile +++ b/Rakefile @@ -18,7 +18,7 @@ task :new_cop, [:cop] do |_task, args| require "rubocop" cop_name = args.fetch(:cop) do - warn("usage: bundle exec rake new_cop[Department/Name]") + warn('usage: bundle exec rake "new_cop[Department/Name]"') exit! end