Method: RuboCop::Cop::Style::FileName#investigate

Defined in:
lib/rubocop/cop/style/file_name.rb

#investigate(processed_source) ⇒ Object



20
21
22
23
24
25
26
27
# File 'lib/rubocop/cop/style/file_name.rb', line 20

def investigate(processed_source)
  file_path = processed_source.buffer.name
  return if config.file_to_include?(file_path)

  for_bad_filename(file_path) do |range, msg|
    add_offense(nil, range, msg)
  end
end