Sha256: 6f530ad9c26043c91ab85922d6bcf1a01e0af1bdd1e8108b4c0a4aa31147f9fa

Contents?: true

Size: 504 Bytes

Versions: 2

Compression:

Stored size: 504 Bytes

Contents

require 'albacore/support/updateattributes'

module NCover
  class CyclomaticComplexity
    include UpdateAttributes
    
    attr_accessor :maximum, :item_type 
    
    def initialize(params={})
      @maximum = 100
      @item_type = :View
      update_attributes(params) if params
      super()
    end
    
    def get_coverage_options
      options = "CyclomaticComplexity"
      options << ":#{@maximum}" if @maximum
      options << ":#{@item_type}" if @item_type
      options
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
albacore-1.0.0 lib/albacore/ncoverreports/cyclomaticcomplexity.rb
albacore-1.0.0.rc.3 lib/albacore/ncoverreports/cyclomaticcomplexity.rb