From fbd688492df20332de5ff2051355fe8bc95f2b94 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Sun, 16 Jul 2023 21:02:30 -0700 Subject: [PATCH 1/2] Suggest zsh-compatible rake syntax As requested by @Morriar in https://github.com/Shopify/rubocop-sorbet/pull/165#discussion_r1262871469 --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 05359b94bcaae0d8b1ad67d6e8a7857e8315e702 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Wed, 19 Jul 2023 11:46:21 -0700 Subject: [PATCH 2/2] Update README to also suggest zsh-compatible syntax --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.