lib/reek/smells/smell_detector.rb in reek-1.3.5 vs lib/reek/smells/smell_detector.rb in reek-1.3.6

- old
+ new

@@ -34,9 +34,13 @@ { Core::SmellConfiguration::ENABLED_KEY => true, EXCLUDE_KEY => DEFAULT_EXCLUDE_SET.dup } end + + def smell_class_name + name.split(/::/)[-1] + end end attr_reader :smells_found # SMELL: only published for tests def initialize(source, config = self.class.default_config)