module Hoe::Flog

Flog plugin for hoe.

Tasks Provided:

flog

Analyze code complexity.

Attributes

flog_threshold[RW]

Optional: flog threshold to determine threshold failure. [default: 1500-200]

Public Instance Methods

define_flog_tasks() click to toggle source

Define tasks for plugin.

# File lib/hoe/flog.rb, line 24
def define_flog_tasks
  begin
    require 'flog_task'
    FlogTask.new :flog, self.flog_threshold
  rescue Exception
    # skip
  end
end
initialize_flog() click to toggle source

Initialize variables for plugin.

# File lib/hoe/flog.rb, line 17
def initialize_flog
  self.flog_threshold ||= timebomb 1500, 1000 # 80% of average :(
end