2bb40bbf86
`Gemfile` is already part of rubocop's default includes. If the aim here was to overwrite the other includes (effectively excluding them) then I think they should be explicitly excluded instead. This commit also fixes offenses revealed by applying rubocop's more exhaustive `Include` list
25 lines
520 B
Ruby
25 lines
520 B
Ruby
require 'devtools'
|
|
|
|
Devtools.init_rake_tasks
|
|
|
|
Rake.application.load_imports
|
|
|
|
task('metrics:mutant').clear
|
|
namespace :metrics do
|
|
task mutant: :coverage do
|
|
arguments = %w[
|
|
bundle exec mutant
|
|
--ignore-subject Mutant::Meta*
|
|
--include lib
|
|
--since HEAD~1
|
|
--require mutant
|
|
--use rspec
|
|
--zombie
|
|
]
|
|
arguments.concat(%w[--jobs 4]) if ENV.key?('CIRCLE_CI')
|
|
|
|
arguments.concat(%w[-- Mutant*])
|
|
|
|
Kernel.system(*arguments) or fail 'Mutant task is not successful'
|
|
end
|
|
end
|