Runs Rubocop on modified files
8 9 10 11 12 13 14 15 16
# File 'lib/testdiff/rubocop.rb', line 8 def run puts 'Running Rubocop on modified files...' files = Testdiff::Modified::RubyFiles.find if files.any? system "rubocop #{files.join(' ')}" else puts 'No modified Ruby files.' end end