Rakefile in ar-enum-0.3.0 vs Rakefile in ar-enum-0.4.0
- old
+ new
@@ -1,14 +1,17 @@
# frozen_string_literal: true
require "bundler/gem_tasks"
require "rake/testtask"
+require "rubocop/rake_task"
Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.libs << "lib"
t.test_files = FileList["test/**/*_test.rb"]
t.verbose = false
t.warning = false
end
-task default: :test
+RuboCop::RakeTask.new
+
+task default: %i[test rubocop]