Method: RuboCop::ConfigFinder.find_config_path

Defined in:
lib/rubocop/config_finder.rb

.find_config_path(target_dir) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



19
20
21
22
# File 'lib/rubocop/config_finder.rb', line 19

def find_config_path(target_dir)
  find_project_dotfile(target_dir) || find_project_root_dot_config ||
    find_user_dotfile || find_user_xdg_config || DEFAULT_FILE
end