codenarc

    5热度

    3回答

    Codenarc是一个分析Groovy代码的缺陷,不良实践,不一致性,样式问题等的框架。 是否有此规则的理由:MisorderedStaticImports Rule: 检查静态import语句应该 永远非静态进口后。违反 例子: import my.something.* import static foo.bar.* public class MyClass{} 我不明白的动机或影响

    1热度

    2回答

    我正在开发一个Grails应用程序,它有codenarc插件。而且我正在使用哈德森构建工具。我正在将应用程序与hudson构建工具集成。在哈德森我配置了违规插件。但是当我构建应用程序时,我遇到了以下错误。 hudson.util.IOException2: Cannot parse CodeNarcReport.xml at hudson.plugins.violations.parse

    2热度

    1回答

    我目前正在使用codenarc plugin,并且我想自定义codenarc规则集属性以便检查我的代码的正确缩进。 有没有人试过吗? 请帮助。 谢谢!

    8热度

    1回答

    有没有办法在Grails项目中自动查找I18N违规?例如, <td valign="top" class="name"><label for="enabled">Enabled:</label></td> 应该被标记,因为它不使用<g:message>来获取标签值。 如果codenarc有这样的规则会很好,但我不认为它是这样。