lib/license_finder/configuration.rb
Class Configuration
has 40 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Configuration
def self.with_optional_saved_config(primary_config)
project_path = Pathname(primary_config.fetch(:project_path, Pathname.pwd)).expand_path
config_file = project_path.join('config', 'license_finder.yml')
saved_config = config_file.exist? ? YAML.safe_load(config_file.read) : {}