Rakefile in anyway_config-0.5.1 vs Rakefile in anyway_config-1.0.0.rc1
- old
+ new
@@ -1,9 +1,13 @@
-require "bundler/gem_tasks"
+# frozen_string_literal: true
+require "bundler/gem_tasks"
require 'rspec/core/rake_task'
+require "rubocop/rake_task"
+RuboCop::RakeTask.new
+
task(:spec).clear
desc "Run specs with Rails app"
RSpec::Core::RakeTask.new("spec") do |task|
task.exclude_pattern = "spec/**/*_norails.rb"
task.verbose = false
@@ -13,7 +17,7 @@
RSpec::Core::RakeTask.new("spec:norails") do |task|
task.pattern = "spec/**/*_norails.rb"
task.verbose = false
end
-desc "Run the all specs"
-task default: %w(spec:norails spec)
+desc "Run the all specs and linters"
+task default: %w[spec:norails spec rubocop]