Skip to content

Instantly share code, notes, and snippets.

@Axxiss
Created November 30, 2012 10:23
Show Gist options
  • Select an option

  • Save Axxiss/4174999 to your computer and use it in GitHub Desktop.

Select an option

Save Axxiss/4174999 to your computer and use it in GitHub Desktop.
Checkstyle target definition
<target name="checkstyle"
description="Generates a report of code convention violations.">
<fail
message="checkstyle.home is missing. Make sure to add it as an argument."
unless="checkstyle.home" />
<path id="checkstyle.path">
<fileset dir="${checkstyle.home}" includes="*.jar" />
</path>
<taskdef resource="checkstyletask.properties" classpathref="checkstyle.path" />
<checkstyle config="android-checkstyle.xml">
<fileset dir="src" includes="**/*.java" />
<fileset dir="tests" includes="**/*.java" />
<formatter type="xml" toFile="reports/checkstyle.xml" />
</checkstyle>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment