Module: Rubycritic::FilesInitializer

Defined in:
lib/rubycritic/files_initializer.rb

Class Method Summary collapse

Class Method Details

.init(paths) ⇒ Object



7
8
9
10
11
12
# File 'lib/rubycritic/files_initializer.rb', line 7

def self.init(paths)
  source = SourceLocator.new(paths)
  source.pathnames.map do |pathname|
    AnalysedFile.new(:pathname => pathname, :smells => [], :duplication => 0)
  end
end