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

MSBuild parser ignores StyleCop warnings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • warnings-plugin
    • None
    • Hudson 1.384, warnings plugin 3.11, Visual Studio 2010, StyleCop, Windows XP

      We've got a Visual Studio 2010 solution with one or more projects whose build process includes calling on StyleCop, which generates warnings about people ignoring naming conventions, layout etc.

      Although these warnings fit the same "format" as standard MSBuild warnings, the plugin seems to ignore them and does not report their presence.

      e.g.

      MoqExtensions.cs(2,1): warning : SA1210: Using directives must be sorted alphabetically by the namespaces. [C:\hudsonSlave\workspace\MyProject\Source\Common.Tests.Stubs.csproj]
      MoqExtensions.cs(3,1): warning : SA1210: Using directives must be sorted alphabetically by the namespaces. [C:\hudsonSlave\workspace\MyProject\Source\Common.Tests.Stubs.csproj]
      MoqExtensions.cs(4,1): warning : SA1210: Using directives must be sorted alphabetically by the namespaces. [C:\hudsonSlave\workspace\MyProject\Source\Common.Tests.Stubs.csproj]
      MoqExtensions.cs(6,1): warning : SA1208: System using directives must be placed before all other using directives. [C:\hudsonSlave\workspace\MyProject\Source\Common.Tests.Stubs.csproj]
      MoqExtensions.cs(70,1): warning : SA1402: A C# document may only contain a single class at the root level unless all of the classes are partial and are of the same type. [C:\hudsonSlave\workspace\MyProject\Source\Common.Tests.Stubs.csproj]
      

            drulli Ulli Hafner
            pjdarton pjdarton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: