Hi all,
I'm trying to use checkstyle for a java project but I can't seem to get it working properly:
While it apparently runs smoothly, the html report doesn't give any info per authors as it should, i.e. the authors table is empty.
The thing is I don't know how checkstyle identify an author. Does it look at the java doc tag @author ? at the class level or at the method level ?
The ant task I used is below:
<taskdef resource="checkstyletask.properties" classpath="${libs.dir}/checkstyle-all-5.0.jar"/>
<target name="checkstyle" description="Generates a report of code convention violations.">
<mkdir dir="${checkstyle.dir}"/>
<checkstyle config="${util.dir}/checkstyle/sun_checks.xml" failureProperty="checkstyle.failure" failOnViolation="false">
<formatter type="xml" tofile="${checkstyle.dir}/checkstyle_report.xml"/>
<fileset dir="${src.dir}" includes="**/*.java"/>
</checkstyle>
<xslt in="${checkstyle.dir}/checkstyle_report.xml" out="${checkstyle.dir}/checkstyle_report.html" style="${util.dir}/checkstyle/checkstyle-author.xsl"/>
</target>
Many thanks for your help
David