Sha256: 53e752de8d2ff5a2f70d66d931b54dbbd6e3708eee4119a61419620c333a746f
Contents?: true
Size: 644 Bytes
Versions: 8
Compression:
Stored size: 644 Bytes
Contents
## # Flog plugin for hoe. # # === Tasks Provided: # # flog:: Analyze code complexity. module Hoe::Flog ## # Optional: flog threshold to determine threshold failure. [default: 1500-200] attr_accessor :flog_threshold attr_accessor :flog_method ## # Initialize variables for plugin. def initialize_flog self.flog_method ||= :max_method self.flog_threshold ||= 20 # 2x industry avg end ## # Define tasks for plugin. def define_flog_tasks begin require 'flog_task' FlogTask.new :flog, self.flog_threshold, nil, self.flog_method rescue LoadError # skip end end end
Version data entries
8 entries across 8 versions & 1 rubygems