Uploaded image for project: 'Maven Checkstyle Plugin'
  1. Maven Checkstyle Plugin
  2. MCHECKSTYLE-356

print the checkstyle violations in descending order of line number

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: checkstyle:checkstyle
    • Labels:
      None

      Description

      By default, the report form checkstyle prints the errors as it is found from beginning to end of file i.e.,

       

      e.g:

      Line 5: Unused import

      Line 10: Missing space etc.,

       

      Instead, it would be better if the report is printed in the reverse order 

      e.g:

      Line 10: Missing space etc.,

      Line 5: Unused import.

       

      As we fix the issues one by one, we end up changing the code and the line number changes. It results in missing the exact line number in which the remaining errors has occurred. So, we end up running the checkstyle multiple times. Instead, if there is an option to print the results in descending order (of a file's line number), it might help to avoid this inconvenience. 

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jagadish.prasath Jagadish Prasath Ramu
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: