module Hoe::Flay
Flay
plugin for hoe.
Tasks Provided:¶ ↑
- flay
-
Analyze for code duplication.
Attributes
Optional: flay threshold to determine threshold failure. [default: 1200-100]
Public Instance Methods
Source
# File lib/hoe/flay.rb, line 24 def define_flay_tasks require "flay_task" FlayTask.new :flay, self.flay_threshold rescue Exception # skip end
Define tasks for plugin.
Source
# File lib/hoe/flay.rb, line 17 def initialize_flay self.flay_threshold ||= timebomb 1200, 100 # 80% of average :( end
Initialize variables for plugin.