Class: Develry::Config::Yardstick

Inherits:
Develry::Config show all
Defined in:
lib/develry/config.rb

Overview

Yardstick configuration

Constant Summary collapse

FILE =
'yardstick.yml'.freeze
OPTIONS =
%w[
  threshold
  rules
  verbose
  path
  require_exact_threshold
].freeze

Constants inherited from Develry::Config

DEFAULT_CONFIG

Instance Attribute Summary

Attributes inherited from Develry::Config

#project

Instance Method Summary collapse

Methods inherited from Develry::Config

#config_file, #enabled?, #initialize

Constructor Details

This class inherits a constructor from Develry::Config

Instance Method Details

#optionsHash

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.

Options hash that Yardstick understands

Returns:

  • (Hash)


131
132
133
134
135
# File 'lib/develry/config.rb', line 131

def options
  OPTIONS.each_with_object({}) { |name, hash|
    hash[name] = raw.fetch(name, nil)
  }
end