Class: RuboCop::Changed::Files

Inherits:
Object
  • Object
show all
Defined in:
lib/rubocop/changed/files.rb

Overview

This class get changed files matching the pattern.

Class Method Summary collapse

Class Method Details

.call(patterns) ⇒ Object



8
9
10
11
# File 'lib/rubocop/changed/files.rb', line 8

def call(patterns)
  files = RuboCop::Changed::Commands.changed_files
  filter(patterns, files)
end