ytti/oxidized

View on GitHub
lib/oxidized/config.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method load has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def self.load(cmd_opts = {})
      usrdir = File.expand_path(cmd_opts[:home_dir] || Oxidized::Config::ROOT)
      cfgfile = cmd_opts[:config_file] || 'config'
      asetus = Asetus.new(name: 'oxidized', load: false, key_to_s: true, usrdir: usrdir, cfgfile: cfgfile)
      Oxidized.asetus = asetus
Severity: Minor
Found in lib/oxidized/config.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status