Module: PatchedRubocop::DucalisConfigLoader

Included in:
RuboCop::ConfigLoader
Defined in:
lib/ducalis/patched_rubocop/ducalis_config_loader.rb

Instance Method Summary collapse

Instance Method Details

#configuration_file_for(target_dir) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/ducalis/patched_rubocop/ducalis_config_loader.rb', line 5

def configuration_file_for(target_dir)
  config = super
  if config == RuboCop::ConfigLoader::DEFAULT_FILE
    ::Ducalis::DEFAULT_FILE
  else
    config
  end
end