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

Violations Plugin does not support CPPLINT errors on LINE 0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • violations-plugin
    • None

    Description

      The standard CPPLINT python script distributed will report some errors on line 0. Those errors will show up in a lint output file. Version will list the file as having an error but in the breakdown it will not show the actual error in the gutter. The only way to figure out the error is to look at the .lint files on the system.

      As a work-around you can change the CPPLINT Python script to output these warning on line 1; however, this isn't ideal as most users will have the generic Google python script.

      Here is an example of the output that you could get from CPPLINT:

      ProjectX/source/widgets/BoostWidget.h:0: No copyright message found. You should have a line: "Copyright [year] <Copyright Owner>" [legal/copyright] [5]
      Done processing ProjectX/source/widgets/BoostWidget.h

      Attachments

        Activity

          People

            peterkittreilly peterkittreilly
            hlclark78 Hays Clark
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: