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

Violation Plugin display [no report] for FxCop

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • violations-plugin
    • None

      I am using the FxCop 1.36 command line to generate the Violation report. When there are no Violation in the specified .dll then the FxCop return "No messages written" and no output file written.

      So the violation plug-in displays as "Fxcop No reports" in the violation graph. It's not an big issue but the Build Icon changed to Thunder Icon.(Check the attachment)

        1. jenkins-violation.png
          9 kB
          Arun Mariappan Karunanithi

          [JENKINS-12792] Violation Plugin display [no report] for FxCop

          alexlombardi added a comment -

          I am seeing a vartiation of this as well.

          As long as the violation occurs in a .vb file and has lines of code associated with it, I am able to drill down into the details and see the code section in Jenkins. You can then hover over that code to get details of what the violation was and what the remedy is.

          Drilling down into the details for violations against classes or namespaces however, which do not contain line(s) of code entries in the generated XML, produce a red bordered triangle with a exclamation sign in it indicating something went wrong. In the past this produced a report of what the error was even if there was no associated code.

          alexlombardi added a comment - I am seeing a vartiation of this as well. As long as the violation occurs in a .vb file and has lines of code associated with it, I am able to drill down into the details and see the code section in Jenkins. You can then hover over that code to get details of what the violation was and what the remedy is. Drilling down into the details for violations against classes or namespaces however, which do not contain line(s) of code entries in the generated XML, produce a red bordered triangle with a exclamation sign in it indicating something went wrong. In the past this produced a report of what the error was even if there was no associated code.

          Martin Adam added a comment - - edited

          to the original description: you can force fxCop to generate file even with no messages (/fo switch), it could solve your problem (but I haven't tried that)

          to alexlombardi: I don't think your situation is really related to this bug - situation you are describing was working correctly with older jenkins. I've upgraded jenkins last week (had about 6 month old version before) and only then the messages near the exclamation mark dissapeared - so I'm quite sure that's another problem and it's most likely caused by some change in jenkins itself
          EDIT: see JENKINS-12764

          Martin Adam added a comment - - edited to the original description: you can force fxCop to generate file even with no messages (/fo switch), it could solve your problem (but I haven't tried that) to alexlombardi: I don't think your situation is really related to this bug - situation you are describing was working correctly with older jenkins. I've upgraded jenkins last week (had about 6 month old version before) and only then the messages near the exclamation mark dissapeared - so I'm quite sure that's another problem and it's most likely caused by some change in jenkins itself EDIT: see JENKINS-12764

          Mark Waite added a comment -

          The violations plugin is deprecated. It has an unresolved security vulnerability. The last commit to the source code repository was over 7 years ago. Closing the issue as "Won't fix"

          Mark Waite added a comment - The violations plugin is deprecated. It has an unresolved security vulnerability. The last commit to the source code repository was over 7 years ago. Closing the issue as "Won't fix"

            peterkittreilly peterkittreilly
            arun_mariappan Arun Mariappan Karunanithi
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: