Rakefile in bulkrax-6.0.1 vs Rakefile in bulkrax-7.0.0
- old
+ new
@@ -23,20 +23,20 @@
require 'bundler/gem_tasks'
require 'solr_wrapper/rake_task' unless Rails.env.production?
+require 'rubocop/rake_task'
+
+RuboCop::RakeTask.new(:rubocop) do |t|
+ t.options = ['--display-cop-names', '--ignore-parent-exclusion', '-a']
+end
+
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
- task default: :spec
+ task default: [:rubocop, :spec]
rescue LoadError # rubocop:disable Lint/HandleExceptions
# no rspec available
-end
-
-require 'rubocop/rake_task'
-
-RuboCop::RakeTask.new(:rubocop) do |t|
- t.options = ['--display-cop-names']
end