You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Kevin Risden (JIRA)" <ji...@apache.org> on 2018/12/08 14:43:00 UTC

[jira] [Commented] (KNOX-1615) Enable PMD for source analysis

    [ https://issues.apache.org/jira/browse/KNOX-1615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16713711#comment-16713711 ] 

Kevin Risden commented on KNOX-1615:
------------------------------------

There is a way to generate a report as well:

{code:java}
mvn org.apache.maven.plugins:maven-pmd-plugin:3.11.0:pmd -DtargetJdk=1.8 -Daggregate
{code}

This will output a report to "target/site/pmd.html"

> Enable PMD for source analysis
> ------------------------------
>
>                 Key: KNOX-1615
>                 URL: https://issues.apache.org/jira/browse/KNOX-1615
>             Project: Apache Knox
>          Issue Type: Improvement
>          Components: Build
>            Reporter: Kevin Risden
>            Assignee: Kevin Risden
>            Priority: Major
>             Fix For: 1.3.0
>
>
> PMD allows for static source analysis. This can find issues that other tools may not find.
> {code:java}
> mvn package -DskipTests -Ppackage pmd:check -DtargetJdk=1.8 -Dpmd.printFailingErrors=true -Dpmd.failOnViolation=false
> {code}
> This finds violations currently although many are minor.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)