Skip to content

How to add multiple path in PMD #2571

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

You must be logged in to vote

Specifying multiple paths is not supported unfortunately. Here's what's supported: https://pmd.github.io/latest/pmd_userdocs_cli_reference.html

You can do the following:

  • Specify the common base directory -d /home/mohd/Desktop/Fxt/ - then your two projects will be included, but maybe more projects, that you don't want to have analyzed.
  • Create a filelist for the files, e.g. find /home/mohd/Desktop/Fxt/Codegen/src/main/java /home/mohd/Desktop/Fxt/VC-Git-Skill/src/main/java -name "*.java" > filelist.txt and use that via -filelist filelist.txt

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by adangel
Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2571 on December 11, 2020 15:55.