pivotal/LicenseFinder

View on GitHub
lib/license_finder/configuration.rb

Summary

Maintainability
A
3 hrs
Test Coverage

Class Configuration has 31 methods (exceeds 20 allowed). Consider refactoring.
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) : {}
Severity: Minor
Found in lib/license_finder/configuration.rb - About 3 hrs to fix

    There are no issues that match your filters.

    Category
    Status