Class: Rubycritic::Reek

Inherits:
Reek::Examiner
  • Object
show all
Defined in:
lib/rubycritic/analysers/helpers/reek.rb

Constant Summary collapse

DEFAULT_CONFIG_FILE =
File.expand_path("../config.reek", __FILE__)

Instance Method Summary collapse

Constructor Details

#initialize(paths) ⇒ Reek

Returns a new instance of Reek.



10
11
12
13
14
# File 'lib/rubycritic/analysers/helpers/reek.rb', line 10

def initialize(paths)
  config = OpenStruct.new(:options => OpenStruct.new(:config_file => DEFAULT_CONFIG_FILE))
  ::Reek::Configuration::AppConfiguration.initialize_with(config)
  super(Array(paths))
end