Class: IronHammer::Utils::CodeAnalyzersEnvironment
- Inherits:
-
Object
- Object
- IronHammer::Utils::CodeAnalyzersEnvironment
- Defined in:
- lib/iron_hammer/utils/code_analyzers_environment.rb
Instance Attribute Summary collapse
-
#fxcop_path ⇒ Object
Returns the value of attribute fxcop_path.
Instance Method Summary collapse
- #fxcop ⇒ Object
- #fxcop_result ⇒ Object
- #fxcop_rules ⇒ Object
-
#initialize(params = {}) ⇒ CodeAnalyzersEnvironment
constructor
A new instance of CodeAnalyzersEnvironment.
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_path ⇒ Object
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
#fxcop ⇒ Object
12 13 14 |
# File 'lib/iron_hammer/utils/code_analyzers_environment.rb', line 12 def fxcop [@fxcop_path, 'fxcopcmd.exe'].patheticalize end |
#fxcop_result ⇒ Object
20 21 22 |
# File 'lib/iron_hammer/utils/code_analyzers_environment.rb', line 20 def fxcop_result "fxcop-result.xml" end |
#fxcop_rules ⇒ Object
16 17 18 |
# File 'lib/iron_hammer/utils/code_analyzers_environment.rb', line 16 def fxcop_rules [@fxcop_path, 'Rules'].patheticalize end |