Rename Rubocop
This commit is contained in:
parent
c3b22fe325
commit
d035b449ea
9
Rakefile
9
Rakefile
|
@ -46,6 +46,8 @@ task :test do
|
|||
GEM_PATHS.each do |g|
|
||||
Dir.chdir("#{File.join(ROOT, g)}") { sh "#{Gem.ruby} -S rake test" }
|
||||
end
|
||||
|
||||
Rake::Task['rubocop'].invoke
|
||||
end
|
||||
|
||||
desc 'Run specs for all middleman gems'
|
||||
|
@ -55,16 +57,11 @@ task :spec do
|
|||
end
|
||||
end
|
||||
|
||||
begin
|
||||
require 'rubocop/rake_task'
|
||||
if defined?(Rubocop)
|
||||
desc 'Run RuboCop to check code consistency'
|
||||
Rubocop::RakeTask.new(:rubocop) do |task|
|
||||
RuboCop::RakeTask.new(:rubocop) do |task|
|
||||
task.fail_on_error = false
|
||||
end
|
||||
end
|
||||
rescue LoadError
|
||||
end
|
||||
|
||||
desc 'Run tests for all middleman gems'
|
||||
task default: :test
|
||||
|
|
Loading…
Reference in a new issue