lib/rubycritic.rb in rubycritic-0.0.3 vs lib/rubycritic.rb in rubycritic-0.0.4
- old
+ new
@@ -10,11 +10,11 @@
class Rubycritic
def initialize
@source_control_system = SourceControlSystem.create
end
- def critique(dirs)
- source = SourceLocator.new(dirs)
+ def critique(paths)
+ source = SourceLocator.new(paths)
if @source_control_system.has_revision?
smelly_pathnames = RevisionComparator.new(source.paths, @source_control_system).compare
else
smell_adapters = AnalysersRunner.new(source.paths).run
smelly_pathnames = SmellsAggregator.new(smell_adapters).smelly_pathnames