Rakefile in bootstrap_form-4.0.0 vs Rakefile in bootstrap_form-4.1.0

- old
+ new

@@ -1,7 +1,8 @@ begin require 'bundler/setup' + require 'rubocop/rake_task' rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end require 'rdoc/task' @@ -28,6 +29,11 @@ task "release:rubygem_push" do require "chandler/tasks" Rake.application.invoke_task("chandler:push") end -task default: :test +desc 'Run RuboCop checks -- see .rubocop_todo.yml for outstanding offenses' +RuboCop::RakeTask.new(:rubocop) do |task| + task.options = %w[--config .rubocop_todo.yml] +end + +task default: %i[test rubocop]