yeikel opened a new issue, #660:
URL: https://github.com/apache/maven-pmd-plugin/issues/660

   ### New feature, improvement proposal
   
   Currently, the plugin requires rules to be specified via a ruleset file 
using the `<rulesets>` element. This approach is inflexible, especially in 
multi-module Maven projects with parent/child relationships. When a child 
project inherits plugin configuration from the parent, it does not inherit the 
ruleset file itself, leading to configuration drift and maintenance challenges.
   
   Request: Enable direct inline rule configuration using something like 
`<rules>` element, such as:
   
   ```xml
   <rules>
       <rule ref="category/java/codestyle.xml/UnnecessaryImport"/>
   </rules>
   ```
   
   This would allow parent POMs to define PMD rules that are inherited by child 
modules without relying on external files, improving maintainability and 
consistency across large projects.
   
   ## Additional context
   
   I am aware that 
https://maven.apache.org/plugins/maven-pmd-plugin/examples/multi-module-config.html
 is an alternative, but it seems like an overkill to need another project to 
host this


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to