mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
Rename Rubocop
This commit is contained in:
parent
c3b22fe325
commit
d035b449ea
1 changed files with 6 additions and 9 deletions
15
Rakefile
15
Rakefile
|
@ -46,6 +46,8 @@ task :test do
|
||||||
GEM_PATHS.each do |g|
|
GEM_PATHS.each do |g|
|
||||||
Dir.chdir("#{File.join(ROOT, g)}") { sh "#{Gem.ruby} -S rake test" }
|
Dir.chdir("#{File.join(ROOT, g)}") { sh "#{Gem.ruby} -S rake test" }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Rake::Task['rubocop'].invoke
|
||||||
end
|
end
|
||||||
|
|
||||||
desc 'Run specs for all middleman gems'
|
desc 'Run specs for all middleman gems'
|
||||||
|
@ -55,15 +57,10 @@ task :spec do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
begin
|
require 'rubocop/rake_task'
|
||||||
require 'rubocop/rake_task'
|
desc 'Run RuboCop to check code consistency'
|
||||||
if defined?(Rubocop)
|
RuboCop::RakeTask.new(:rubocop) do |task|
|
||||||
desc 'Run RuboCop to check code consistency'
|
task.fail_on_error = false
|
||||||
Rubocop::RakeTask.new(:rubocop) do |task|
|
|
||||||
task.fail_on_error = false
|
|
||||||
end
|
|
||||||
end
|
|
||||||
rescue LoadError
|
|
||||||
end
|
end
|
||||||
|
|
||||||
desc 'Run tests for all middleman gems'
|
desc 'Run tests for all middleman gems'
|
||||||
|
|
Loading…
Reference in a new issue