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(pathname) ⇒ Reek

Returns a new instance of Reek.



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

def initialize(pathname)
  config = ::Reek::Configuration::AppConfiguration.from_path(DEFAULT_CONFIG_FILE)
  super(pathname, [], :configuration => config)
end