Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: violations-plugin
-
Labels:None
-
Environment:Platform: All, OS: All
-
Similar Issues:
Description
Stylecop 4.3 has changed the XML output and the violations plugin will not work with the
new format.
New format:
<StyleCopViolations>
<Violation Section="Root.ListViewProblem.Form1.Dispose%bool" LineNumber="18" Source="Form1.Designer.cs"
RuleNamespace="Microsoft.StyleCop.CSharp.ReadabilityRules" Rule="PrefixLocalCallsWithThis"
RuleId="SA1101">The call to components must begin with the 'this.' prefix to indicate
that the item is a member of the class.</Violation>
<Violation Section="Root.ListViewProblem.Form1.Dispose%bool" LineNumber="16" Source="Form1.Designer.cs"
RuleNamespace="Microsoft.StyleCop.CSharp.ReadabilityRules" Rule="PrefixLocalCallsWithThis"
RuleId="SA1101">The call to components must begin with the 'this.' prefix to indicate
that the item is a member of the class.</Violation>
</StyleCopViolations>
Code changed in hudson
User: : redsolo
Path:
trunk/hudson/plugins/violations/src/main/java/hudson/plugins/violations/types/stylecop/StyleCopParser.java
trunk/hudson/plugins/violations/src/test/java/hudson/plugins/violations/types/stylecop/StyleCopParserTest.java
trunk/hudson/plugins/violations/src/test/resources/hudson/plugins/violations/types/stylecop/stylecop-v4.3.xml
http://fisheye4.cenqua.com/changelog/hudson/?cs=11640
Log:
[FIXED JENKINS-2242] Fixed so it works with new Stylecop XML output