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有這樣的規則會很好,但我不認爲它是這樣。