Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-3490

Checkstyle should not output XML report when only the HTML report is enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 2.10
    • Fix Version/s: 3.1-rc-1

      Description

      tasks.withType(Checkstyle) {
          reports {
              xml.enabled false
              html.enabled true
          }
      }
      

      In that case, both XML and HTML reports are presents in the output directory:

      build/reports/checkstyle/main.html
      build/reports/checkstyle/main.xml
      

      Only the HTML report should be present in build/reports/checkstyle.

      See https://discuss.gradle.org/t/checkstyle-plugin-still-generates-xml-report-with-disabled-option

        Attachments

          Activity

            People

            Assignee:
            bmuschko Benjamin Muschko
            Reporter:
            eskatos Paul Merlin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: