【问题标题】:Checkstyle is not working while building the project in eclipse在 Eclipse 中构建项目时,Checkstyle 不起作用
【发布时间】:2015-08-27 13:55:05
【问题描述】:

我在构建项目时遇到了检查样式问题。请尽快根据我的以下错误消息指导我。

构建过程中发生错误:

在项目“CMS”上运行构建器“Checkstyle Builder”时出错。

无法初始化模块 TreeWalker - 无法实例化 ReturnNullInsteadOfBoolean
无法初始化模块 TreeWalker - 无法实例化 ReturnNullInsteadOfBoolean
无法初始化模块 TreeWalker - 无法实例化 ReturnNullInsteadOfBoolean
无法初始化模块 TreeWalker - 无法实例化 ReturnNullInsteadOfBoolean

【问题讨论】:

    标签: java eclipse checkstyle sevntu-checkstyle


    【解决方案1】:

    ReturnNullInsteadOfBoolean 不是核心 Checkstyle 发行版的一部分。相反,它是 SevNTU 的一部分 - 默认情况下通常不会安装到 Eclipse 中。

    在 Eclipse 中,在“帮助”菜单下,选择“安装新软件...”。搜索“EclipseCS SevNTU 插件功能”,选中它的复选框,然后安装。

    这也可能显示为“带有附加检查的 eclipse-cs 插件的扩展”。

    另见:Error while installing check style plugin for eclipse

    如果这仍然不适合您,请回复。

    【讨论】:

    • 非常感谢您的快速响应,但我无法根据上述建议进行修复。我现在跟着它也有“EclipseCS SevNTU”,但它正在抛出异常
    • 构建过程中发生错误。在项目“cms-ws”上运行构建器“Checkstyle Builder”时出错。无法初始化模块 TreeWalker - 无法实例化 RedundantThrows 无法初始化模块 TreeWalker - 无法实例化 RedundantThrows 无法初始化模块 TreeWalker - 无法实例化 RedundantThrows 无法初始化模块 TreeWalker - 无法实例化 RedundantThrows
    • RedundantThrows 已在 Checkstyle 6.2 版中删除,需要从项目的 Checkstyle 配置中删除。另见:stackoverflow.com/questions/27919444/…
    • @user2424101 - 请参见上文。
    猜你喜欢
    • 1970-01-01
    • 2012-01-03
    • 2012-09-29
    • 1970-01-01
    • 2021-06-03
    • 2012-03-06
    • 2016-03-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多