简体   繁体   中英

Gradle checkstyle plugin xml report

as i know checkstyle creates two types of report, xml and plain text. Which parameter i should update to make report as xml?

example xml output

java com.puppycrawl.tools.checkstyle.Main -c docs/sun_checks.xml \
     -f xml -o build/checkstyle_errors.xml Check.java

Ok, answer found, create reportsDir property in checkstyle.

example

checkstyle {
    toolVersion = '6.4'
    configFile = file('google_checks.xml');
    reportsDir = file("$project.buildDir/reports/checkstyle/")
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM