github jborgers/sonar-pmd 4.1.0
Release 4.1.0 - full Java PMD 7 rule support

one month ago

What's Changed

  • Now all current PMD Java rules are available (282, up from 206), see details pmd_release_notes_4.1.0.md
  • Generate Sonar rules xml for the plugin directly from the PMD 7.15.0 rules xml: makes all Java rules available and up-to-date easily with a new release
  • Updated and non-deprecated the "PMD XPath Template Rule" (pmd:XPathRule) to create custom Java rules with powerful PMD7 XPath expressions
  • Generate nicely formatted html descriptions from the PMD rule description markup
  • Added pmd tag and category tag for each rule
  • Added has-sonar-alternative tag for rules with known Sonar alternative (instead of making rules with alternatives Deprecated)
  • Simplified release process by automation
  • Maven release via Sonatype Central Portal

PMD Java Rules

Total Java rules in version 4.1.0: 282, up from 206.

Rules added: 80, updated: 155, renamed: 11, removed: 4, unchanged: 46.

See the detailed changes in Java rules: pmd_release_notes_4.1.0.md

Pull requests

  • generate rules.xml based on the pmd 7 rules #517 by @stokpop in #520
  • Full upgrade to 25.6 by @stokpop in #510
  • Issue 507 move test rules by @stokpop in #511
  • Add sonar alternative tag to rules and add alternative links in description by @stokpop in #531
  • Add "title of issues" on top of rule descriptions by @stokpop in #533

Issues solved

  • Revivify XPathRule Rule Template #543
  • Deprecated rules from PMD do not have status deprecated in SonarQube #419
  • Follow-up work from pmd7 migration #495
  • Not all pmd rules are available from sonar-pmd #338
  • Solve discontinued / deprecated rules #462
  • Cleanup references to old PMD6 rules #491
  • System Println rule - S106 link on sonarqube UI not working ,showing blank #400

Dependencies

  • build(deps-dev): bump org.assertj:assertj-core from 3.27.2 to 3.27.3 by @dependabot[bot] in #514
  • build(deps-dev): bump org.junit.jupiter:junit-jupiter from 5.13.0 to 5.13.2 by @dependabot[bot] in #513
  • build(deps): bump org.codehaus.mojo:flatten-maven-plugin from 1.7.0 to 1.7.1 by @dependabot[bot] in #512
  • build(deps-dev): bump org.junit.jupiter:junit-jupiter from 5.13.2 to 5.13.3 by @dependabot[bot] in #526
  • build(deps): bump org.sonatype.central:central-publishing-maven-plugin from 0.7.0 to 0.8.0 by @dependabot[bot] in #524
  • build(deps): bump org.apache.maven.plugins:maven-enforcer-plugin from 3.5.0 to 3.6.0 by @dependabot[bot] in #522
  • build(deps): bump org.apache.maven.plugins:maven-gpg-plugin from 3.2.7 to 3.2.8 by @dependabot[bot] in #521
  • build(deps): bump org.codehaus.groovy:groovy-all from 3.0.19 to 3.0.25 by @dependabot[bot] in #535
  • build(deps): bump org.apache.commons:commons-lang3 from 3.17.0 to 3.18.0 by @dependabot[bot] in #539

Full Changelog: 4.0.3...4.1.0

Don't miss a new sonar-pmd release

NewReleases is sending notifications on new releases.