Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-2242

Stylecop has changed the XML output

    XMLWordPrintable

    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>

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          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

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - 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
          Hide
          redsolo redsolo added a comment -

          Released

          Show
          redsolo redsolo added a comment - Released

            People

            • Assignee:
              redsolo redsolo
              Reporter:
              redsolo redsolo
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: