Menu

#1360 [core] [java] Provide backwards combatibility for PMD configuration file

PMD-5.3.8
closed
PMD
2-Critical
Feature-Request
ALL
All
2016-06-25
2015-05-19
Phil
No

On a typical project (especially larger ones) there will developers using different versions of eclipse (or other IDEs), different versions of PMD, different versions of the eclipse PMD plugin. A typical developer may be working on several projects, so enforcing specific versions of tools for specific projects is not realistic.

In order to provide consistency across the project from a static analysis point of view, the project must maintain a standard PMD configuration file. Currently the PMD configuration files are not backwards compatible. So every time we get a new developer on the project or someone decides to upgrade their toolset, there are always issues with PMD changes that need to be resolved, which take longer than you might expect and lots of times developers just skip it because its a blocker in their existing goal.

Let's take, for example the recent rule name changes.
1) UseSingleton -> UseUtilityClass
2) MethodNamingConvention -> MethodNamingConventions

If a configuration file contains a <exclude name="UseSingleton"/> in one version, this will fail to work in a future version, breaking backwards compatibility. It should be pretty easy to add checks for these types of changes in the future, print out a warning and just disable the appropriate rule with the new name.

I realize that some code puritans will think this feature request is "whiny", but if you want wider adoption of your tool and have it "just work", this feature is a must have.

Discussion

  • Andreas Dangel

    Andreas Dangel - 2016-05-13
    • status: open --> closed
    • assigned_to: Andreas Dangel
    • Milestone: New Tickets --> PMD-5.3.8
     
  • Andreas Dangel

    Andreas Dangel - 2016-06-25
    • labels: --> core, java
    • summary: Provide backwards combatibility for PMD configuration file --> [core] [java] Provide backwards combatibility for PMD configuration file
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.