lib/autowow/features/gem.rb in autowow-0.4.1 vs lib/autowow/features/gem.rb in autowow-0.5.0

- old
+ new

@@ -26,9 +26,17 @@ def gem_clean pretty_with_output.run(clean) end + def rubocop_parallel_autocorrect + result = pretty_with_output.run!(rubocop_parallel) + if result.failed? + filtered = result.out.each_line.select { |line| line.match(%r{(.*):([0-9]*):([0-9]*):}) }.map{ |line| line.split(':')[0] }.uniq + pretty_with_output.run(rubocop_autocorrect(filtered)) if filtered.any? + end + end + include ReflectionUtils::CreateModuleFunctions end end end