2015-01-13 53 views
23

我使用STS并安装了checkstyle插件。使用安装新的软件与此URL http://eclipse-cs.sourceforge.net/updateJava - Checkstyle - 冗余引发

我对自己的Java项目有自己的checkstyle规则。每当我更改任何代码并保存时,对我来说显示以下错误。

Errors occurred during the build. 
Errors running builder 'Checkstyle Builder' on project 'myproject'. 
cannot initialize module TreeWalker - Unable to instantiate RedundantThrows 
cannot initialize module TreeWalker - Unable to instantiate RedundantThrows 
cannot initialize module TreeWalker - Unable to instantiate RedundantThrows 
cannot initialize module TreeWalker - Unable to instantiate RedundantThrows 

这是RedundantThrows

<module name="RedundantThrows"> 
      <property name="logLoadErrors" value="true" /> 
      <property name="suppressLoadErrors" value="true" /> 
     </module> 

如何解决这个问题我的CheckStyle规则?

谢谢。

回答

36

RedundantThrows与6.2版本(见https://github.com/checkstyle/checkstyle/issues/473)去除

+0

那么我应该从checkstyle规则中删除那个模块吗?我最近创建了一个新的STS实例并安装了该插件。在此之前它完美地工作。 – iCode

+1

我评论了redundantThrows模块。但它再次显示错误。 – iCode

+0

你试过从命令行运行checkstyle吗?你确定只有你的配置文件被选中,而不是其他人? –