summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-04 17:45:22 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-20 14:22:35 +0100
commit0f62ba3073b5371e427c882e3e63c3035861db4f (patch)
treec586af2860488d72ede77bd8632b54a459d44fc0
parent3c229b275c4799067e62cec54e20283cc622b8b2 (diff)
downloadbundler-0f62ba3073b5371e427c882e3e63c3035861db4f.tar.gz
Simplify rubocop task
We shell out to the binstub so we no longer need the activation dance.
-rw-r--r--Rakefile13
1 files changed, 6 insertions, 7 deletions
diff --git a/Rakefile b/Rakefile
index e92f1a33de..3427f06bae 100644
--- a/Rakefile
+++ b/Rakefile
@@ -95,11 +95,12 @@ task :spec do
sh("bin/rspec")
end
-begin
- require "rubocop/rake_task"
- rubocop = RuboCop::RakeTask.new
- rubocop.options = ["--parallel"]
+desc "Run RuboCop"
+task :rubocop do
+ sh("bin/rubocop --parallel")
+end
+begin
namespace :spec do
task :clean do
rm_rf "tmp"
@@ -231,9 +232,7 @@ begin
end
end
rescue LoadError
- task :rubocop do
- abort "Run `rake spec:deps` to be able to run rubocop"
- end
+ nil
end
begin