pmd

    0熱度

    2回答

    我需要爲STS 3.8版本啓用PMD插件。已嘗試與網址http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/,它似乎像這個URL被阻止。有其他方法嗎?

    0熱度

    1回答

    我使用的是內置的規則集strings.xml和unusedcode.xml與 <?xml version="1.0"?> <ruleset name="Custom ruleset" xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-in

    0熱度

    1回答

    我與價值true指定skipAnnotations默認PMD strings.xml規則集: <rule ref="rulesets/java/strings.xml"> <properties> <property name="skipAnnotations" value="true"/> </properties> </rule> 它是在一個簡單的情況下,

    0熱度

    1回答

    我正在嘗試使用Apex的代碼格式化程序。我需要AST將它插入流行的Javascript格式(更漂亮)。是否有機會獲得Apex AST並將其放入JSON blob格式?

    0熱度

    2回答

    當我運行mvn pmd:檢查與JAVA_HOME設置爲jdk 1.8,這運行順利。當我將jdk切換到1.7時,出現以下異常。 PMD支持1.7,所以不知道爲什麼我得到這個錯誤。 產生的原因:org.apache.maven.plugin.PluginContainerException:執行org.apache.maven.plugins遇到一個API不兼容:Maven的PMD-插件:3.8:PM

    0熱度

    1回答

    我將如何設置使用pmd和checkstyle結果作爲建議而僅在構建服務器上禁用它們?這樣做會不好做? pmd和checkstyle都提供valuable advice,我想繼續使用它們。 但是(這裏來了但是)我發現我的代碼收集了很多皮棉試圖解決一些警告。舉幾個例子: 測試類包含許多的Mockito和JUnit靜態導入,總是我必須添加@SuppressWarnings(「PMD.TooManySta

    1熱度

    3回答

    @RequestMapping(value = "/product/baselist", method = RequestMethod.POST) public ResponseEntity<Object> baseListProductFilters(@RequestBody final ObjectNode json) { LOGGER.debug("Gettig all prod

    1熱度

    2回答

    我想在Jenkins中集成Checkstyle和PMD插件以自動檢查質量代碼。 我跟着指示來自:http://www.treselle.com/blog/static-code-analysis-jenkins/ 我在工作區中的build.xml附在這些代碼: <taskdef name="checkstyle" classpath="WEB-INF/libs/checkstyle-5.6.jar

    2熱度

    1回答

    有沒有方法通過類名稱模式從PMD規則中排除類? 我在尋找像某事: <rule ref="rulesets/java/coupling.xml/ExcessiveImports"> <exclude-pattern>.*Test\.class</exclude-pattern> </rule> 我知道violationSuppressXPath辦法,但我覺得它太難看/複雜。 謝謝!

    0熱度

    1回答

    我在build.gradle PMD檢查這樣的: apply plugin: "pmd" dependencies { pmd "net.sourceforge.pmd:pmd-java:5.5.+" } /*** PMD ***/ pmd { ignoreFailures = true } tasks.withType(Pmd) { exclude