[MPMD-294] Add support for setting includes/excludes via a user property

Open
#628 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
build-system

Research direction

Start by locating the Maven PMD plugin's handling of includes and excludes, then trace how user properties are exposed to that configuration. The issue describes runtime file lists as the goal; done should allow changed Java files supplied through user properties to be included or excluded when PMD runs.

Written by the indexing model from the issue text.

Description

enhancement priority:major

Roy Arnon opened MPMD-294 and commented

I have a use case were I want to execute pmd on a huge monorepo project, but only on the changed files.

Getting the changed java files via git is trivial, but it seems that the PMD plugin does not support setting the includes/excludes by user property.

Can we look into adding a property like maven surefires includesFile/excludesFile, which will allow us to specify includes/excludes at runtime?

I may try to prepare a PR for this feature if I have the time.


Affects: 3.12.0

Dominant language
Java
Stars
66
Forks
55
Avg merge
1d 2h
Merged PRs (30d)
9

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/maven-pmd-plugin

All issues in apache/maven-pmd-plugin

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.