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

Violations Plugin does not support CPPLINT errors on LINE 0


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

      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

            peterkittreilly peterkittreilly
            hlclark78 Hays Clark
            0 Vote for this issue
            3 Start watching this issue