虽然它看起来运行平稳,但是HTML报告并没有给出每个作者的任何信息,因为它应该是这样的,即作者表是空的。Checkstyle:不能总结每个作者的问题?
事情是我不知道checkstyle如何识别作者。它看着java文档标签@author?在课堂上还是在方法层面?
我使用Ant任务是下面:
<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>
的帮助
大卫
以前真的没有人遇到过这个问题吗? – dm76 2010-02-26 17:17:59