Sha256: a7991832a87190b371d493744c17c9e7dbc0d363b9e6d6fadb940ac557c332ff
Contents?: true
Size: 514 Bytes
Versions: 1
Compression:
Stored size: 514 Bytes
Contents
$:.unshift File.dirname(__FILE__) require 'reek/file_checker' require 'reek/report' module Reek # :doc: # # Analyse the given source files, looking for code smells. # Returns a +Report+ listing the smells found. # def self.analyse(*files) # :doc: report = Report.new files.each do |file| source = Reek.read(file) FileChecker.new(report).check_source(source) end report end private def self.read(file) File.exists?(file) ? IO.readlines(file).join : file end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reek-0.3.0 | lib/reek.rb |