Class: IronHammer::Utils::CodeAnalyzersEnvironment

Inherits:
Object
  • Object
show all
Defined in:
lib/iron_hammer/utils/code_analyzers_environment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ CodeAnalyzersEnvironment

Returns a new instance of CodeAnalyzersEnvironment.



8
9
10
# File 'lib/iron_hammer/utils/code_analyzers_environment.rb', line 8

def initialize params={}
  @fxcop_path  = params[:fxcop_path] || default_fxcop_path
end

Instance Attribute Details

#fxcop_pathObject

Returns the value of attribute fxcop_path.



6
7
8
# File 'lib/iron_hammer/utils/code_analyzers_environment.rb', line 6

def fxcop_path
  @fxcop_path
end

Instance Method Details

#fxcopObject



12
13
14
# File 'lib/iron_hammer/utils/code_analyzers_environment.rb', line 12

def fxcop
  [@fxcop_path, 'fxcopcmd.exe'].patheticalize
end

#fxcop_resultObject



20
21
22
# File 'lib/iron_hammer/utils/code_analyzers_environment.rb', line 20

def fxcop_result
  "fxcop-result.xml"
end

#fxcop_rulesObject



16
17
18
# File 'lib/iron_hammer/utils/code_analyzers_environment.rb', line 16

def fxcop_rules
  [@fxcop_path, 'Rules'].patheticalize
end