View Source

To publish [CheckStyle|] report, you only need two steps:
# Generate CheckStyle *XML* report from [Ant|] or [Maven|] or any other build tool.
# Add Checkstyle publish step by choosing _Publish -> CheckStyle Report_ from the step menu.

h2. Generate CheckStyle Report

QuickBuild will NOT generate [CheckStyle|] report automatically, so first make sure the CheckStyle report is produced by [ANT|] or by any other build tool. The following example shows how to generate CheckStyle XML report by [Ant JUnit task|]:
{code:xml|title= CheckStyle target in build.xml}
<target name="checkstyle" description="Check coding style">
<taskdef resource="">
<classpath refid="path.lib"/>
<checkstyle config="checkstyle_checks.xml">
<fileset dir="${src.dir}">
<include name="**/*.java"/>
<formatter type="xml"/> <!-- DO use xml formatter -->
After adding the target above, generate the XML report for your source code, and you can tell QuickBuild to publish the results.

h2. Publish CheckStyle Report
Add _*Publish CheckStyle Report*_ step to your build workflow. If you have several report sets, you can add several _Publish CheckStyle steps_ with different report set names. Reference [this page|Publish Build Reports] for more details.