Sha256: 1933fe28eab2b69e76ac6b88e79eb068c731acda53a09cc06e9207a27bf64a69

Contents?: true

Size: 492 Bytes

Versions: 2

Compression:

Stored size: 492 Bytes

Contents

require 'albacore/support/albacore_helper'

module NCover
	class CyclomaticComplexity
		include YAMLConfig
		
		attr_accessor :maximum, :item_type 
		
		def initialize(params={})
			super()
			@maximum = 100
			@item_type = :View
			parse_config(params) unless params.nil?
		end
		
		def get_coverage_options
			options = "CyclomaticComplexity"
			options << ":#{maximum}" unless maximum.nil?
			options << ":#{item_type}" unless item_type.nil?
			options
		end
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
albacore-0.0.8 lib/albacore/ncoverreports/cyclomaticcomplexity.rb
albacore-0.0.7 lib/albacore/ncoverreports/cyclomaticcomplexity.rb