Checkstyleのコンフィグファイル
EclipseのCheckstylePluginのバージョンを3.5から4.0.1に挙げたらオリジナルのコンフィグファイル適用でエラーが発生。調べてみたところ、ファイルのフォーマット自体変えないとダメなような感じ。。
現状、こんなかんじの記述。
<checkstyle-configurations file-format-version="3.2.0"> <check-configuration name="GRUE Checks"> <rule-configuration classname="com.puppycrawl.tools.checkstyle.checks.ModifierOrderCheck" severity="warning" comment="修飾子の順序をチェックします。順序についてはRule Descriptionを参照してください。"> <config-properties/> </rule-configuration>
checkstyleのユーザーズMLアーカイブを調べたら以下のような記述が。
http://sourceforge.net/mailarchive/message.php?msg_id=11084238
The configuration snippet you provide is not a standard checkstyle
configuration, that would includeand tags.
・・
You seem to use some kind of IDE plugin for WSAD/Eclipse, maybe that
plugin has it"s own configuration syntax?
実際、デフォルトで付いてくるsun_checks_eclipse.xmlとかはこんなだし。
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd"> <module name="Checker"> <property name="severity" value="warning"/> <module name="TreeWalker"> <property name="tabWidth" value="4"/> <module name="JavadocMethod"> </module>
コンフィグファイル全面書き換え(再作成)かなぁ。。