Register Now
Member Count: 626,053 - April 17, 2014  [Get Time]
Login
forums   
Round Tables
News Discussions
Algorithm Matches
Marathon Matches
NASA Tournament Lab
Software Forums
TopCoder Cookbook
High School Matches
Sponsor Discussions
Search Watch Thread  |  My Post History  |  My Watches  |  User Settings
View: Flat (newest first)  | Threaded  | Tree
Previous Thread  |  Next Thread
Forums Round Tables General Discussion Checkstyle Problem
Checkstyle Problem | Reply
<target name="checkstyle">
<mkdir dir="check-results"/>
<checkstyle config="${checkstyle.dir}/sun_checks.xml"
failureProperty="checkstyle.failure"
failOnViolation="false">
<formatter type="xml" tofile="check-results/checkstyle_report.xml"/>
<fileset dir="${src.dir}" includes="**/*.java"/>
</checkstyle>

<style in="./check-results/checkstyle_report.xml" out="./check-results/checkstyle_report.html" style="./lib/checkstyle.xsl"/>
</target>
------------------------------------------------------------------------------
I write this ant task for checkstyle. But the result shows :
------------------------------------------------------------------------------
checkstyle:
[checkstyle] Running Checkstyle 5.5 on 4 files
[style] Warning: the task name <style> is deprecated. Use <xslt> instead.
[style] Processing /Users/wuhan/Documents/workspace/cvb6/check-results/checkstyle_report.xml to /Users/wuhan/Documents/workspace/cvb6/check-results/checkstyle_report.html
[style] Loading stylesheet /Users/wuhan/Documents/workspace/cvb6/lib/checkstyle.xsl
------------------------------------------------------------------------------
the XML file is well produced, but the html file fails. How can I fix this problem?
what can I do with this warning?
[style] Warning: the task name <style> is deprecated. Use <xslt> instead.

And Is there any check file other than "sun_checks.xml", that fit the topcoder better?
I think sun_checks.xml is a little bit too strict......

Thank you for all of you~
Re: Checkstyle Problem (response to post by soywu) | Reply
hi soywu

visit this post where can I get the newest checkstyle xml
for TopCoder checkstyle we use Checkstyle 5.3
for Details visit Component Development Member Guidelines
FYI
Forums Round Tables General Discussion Checkstyle Problem
Previous Thread  |  Next Thread
RSS