Class: RuboCop::TargetFinder::Dir
- Inherits:
-
Dir
- Object
- Dir
- RuboCop::TargetFinder::Dir
- Defined in:
- lib/rubocop/target_finder.rb
Overview
Override Dir.glob for find_files method. Dir.glob calls only with two types of flags. For case when need to find files will be used RuboCop::Changed::Files.call
Class Method Summary collapse
Class Method Details
.glob(patterns, flags) ⇒ Object
8 9 10 |
# File 'lib/rubocop/target_finder.rb', line 8 def self.glob(patterns, flags) flags == 4 ? RuboCop::Changed::Files.call(patterns) : super end |