From e419b5d1787412cc0c2d710f9702651d34179327 Mon Sep 17 00:00:00 2001 From: William Johnston Date: Tue, 1 Mar 2016 08:39:51 -0600 Subject: [PATCH] Make entire Rubocop suite run by default. --- .travis.yml | 2 +- Rakefile | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index ae05d42b..96ac3dc2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ rvm: - 2.1 - 2.0 - rbx-2 -script: bundle exec rake spec lint +script: bundle exec rake spec rubocop install: bundle install --jobs=1 cache: bundler branches: diff --git a/Rakefile b/Rakefile index 06d6a182..b84d37d4 100644 --- a/Rakefile +++ b/Rakefile @@ -3,12 +3,10 @@ require "cucumber/rake/task" require "rspec/core/rake_task" require "rubocop/rake_task" -task :default => [:spec, :lint] +task :default => [:spec, :rubocop] RSpec::Core::RakeTask.new Cucumber::Rake::Task.new(:features) -desc "Run RuboCop lint checks" -RuboCop::RakeTask.new(:lint) do |task| - task.options = ["--lint"] -end +desc "Run RuboCop checks" +RuboCop::RakeTask.new