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

Would be nice to see the name of CHECK together with its output

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.13
    • checkstyle:check
    • None
    • maven-3

    Description

      This is what I see in my report (for example):

      [...]
      [ERROR] Abc.java[77:5] Class should define a constructor.
      [ERROR] Abc.java[88:5] Class should define a constructor.
      [ERROR] Abc.java[99:8] Unused @param tag for 's'.
      [...]
      

      It's difficult to understand which particular checkstyle check produced these lines. Would be nice to have a configuration option in the plugin, which will let me turn such extra logging ON and OFF, and I would see something like this:

      [...]
      [ERROR] Abc.java[77:5] Class should define a constructor. (com.puppycrawl.tools.checkstyle.checks...)
      [ERROR] Abc.java[88:5] Class should define a constructor. (com.puppycrawl.tools.checkstyle.checks...)
      [ERROR] Abc.java[99:8] Unused @param tag for 's'. (com.puppycrawl.tools.checkstyle.checks...)
      [...]
      

      This logging will help me to find and re-configure my checks very fast.

      Attachments

        Activity

          People

            hboutemy Herve Boutemy
            fazend Yegor Bugayenko
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: