Module: MetzScan::Commands::Scan::TargetFileDiscovery
- Defined in:
- lib/metz_scan/commands/scan/runner.rb
Class Method Summary collapse
- .find(paths, store) ⇒ Object
- .for_project_config(paths) ⇒ Object
- .with_forced_defaults(paths) ⇒ Object
Class Method Details
.find(paths, store) ⇒ Object
193 194 195 |
# File 'lib/metz_scan/commands/scan/runner.rb', line 193 def find(paths, store) RuboCop::TargetFinder.new(store, {}).find(paths, :all_file_types) end |
.for_project_config(paths) ⇒ Object
183 184 185 186 187 |
# File 'lib/metz_scan/commands/scan/runner.rb', line 183 def for_project_config(paths) find(paths, ProjectConfigScope.store) rescue RuboCop::Error, Psych::Exception with_forced_defaults(paths) end |
.with_forced_defaults(paths) ⇒ Object
189 190 191 |
# File 'lib/metz_scan/commands/scan/runner.rb', line 189 def with_forced_defaults(paths) find(paths, RuboCop::ConfigStore.new.tap(&:force_default_config!)) end |