Flay plugin for hoe.
flay
Analyze for code duplication.
Optional: flay threshold to determine threshold failure. [default: 1200-100]
Define tasks for plugin.
# File lib/hoe/flay.rb, line 24 def define_flay_tasks begin require 'flay' require 'flay_task' FlayTask.new :flay, self.flay_threshold rescue Exception # skip end end
Initialize variables for plugin.
# File lib/hoe/flay.rb, line 17 def initialize_flay self.flay_threshold ||= timebomb 1200, 100 # 80% of average :( end
[Validate]
Generated with the Darkfish Rdoc Generator 2.