Skip to content

Running PMD only on code affected by a feature branch? #2568

Answered by adangel
daveespo asked this question in Q&A
Discussion options

You must be logged in to vote

That's a good question!
A little bit is explained here: https://pmd.github.io/latest/pmd_userdocs_best_practices.html#choose-the-rules-that-are-right-for-you

The main take away is: Don't enable all rules at once, otherwise you'll be overwhelmed by violations...

PMD itself doesn't support history - so it can't say, whether the violation is a new one (compared to the last run) or was already there before.

Some CI systems (like Jenkins -> https://plugins.jenkins.io/warnings-ng/) support this - at least comparing between runs. Not sure, if they support comparing against builds of different branches.

A similar question was asked on gitter by @KroArtem. He wrote a script to manually determine t…

Replies: 8 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@adangel
Comment options

Answer selected by adangel
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #2568 on December 11, 2020 15:58.