class AnalDiffist::FlogParser

Public Class Methods

new(paths, threshold = 10.0) click to toggle source
# File lib/analdiffist/flog_parser.rb, line 4
def initialize paths, threshold = 10.0
  @paths = paths
  @flog_threshold = threshold
end

Public Instance Methods

problems() click to toggle source
# File lib/analdiffist/flog_parser.rb, line 9
def problems
  f = Flog.new :continue => true

  f.flog(@paths)
  problems = []
  f.each_by_score{|class_method, score, ignore_for_now| problems << FlogProblem.new(class_method, score, @flog_threshold)}
  problems
  #problems.select {|p| p.score >= @flog_threshold}
end