Skip to content

CHANGE @W-20621708@ - Updated PMD engine from 7.20.0 to 7.21.0#415

Merged
aruntyagiTutu merged 1 commit intodevfrom
arun.tyagi/feb_26_pmd_update
Feb 18, 2026
Merged

CHANGE @W-20621708@ - Updated PMD engine from 7.20.0 to 7.21.0#415
aruntyagiTutu merged 1 commit intodevfrom
arun.tyagi/feb_26_pmd_update

Conversation

@aruntyagiTutu
Copy link
Contributor

Changes

PMD Version Update

  • Updated PMD from 7.20.0 to 7.21.0 across all required files
    • gradle/libs.versions.toml
    • src/constants.ts
    • package.json (version bumped to 0.37.0-SNAPSHOT)

Java Dependencies

  • Updated junit-jupiter from 5.13.4 to 5.14.3 (latest 5.x compatible with Java 11)
  • Verified slf4j-nop (1.7.36) and gson (2.13.2) match PMD Core 7.21.0

Node Dependencies

  • Updated @eslint/js from 9.39.2 to 10.0.1
  • Updated eslint from 9.39.2 to 10.0.0
  • Updated rimraf from 6.1.2 to 6.1.3
  • Updated semver from 7.7.3 to 7.7.4
  • Updated typescript-eslint from 8.53.0 to 8.56.0
  • Kept @types/node at 20.x (minimum customer version requirement)

Test Updates

Updated test gold files to match PMD 7.21.0 documentation improvements:

  • Fixed spelling: "mantain" → "maintain" (ApexSuggestUsingNamedCred)
  • Fixed spelling: "advices" → "advises" (ApexUnitTestMethodShouldHaveIsTestAnnotation)
  • Fixed spelling: "accidently" → "accidentally" (GlobalVariable)
  • Fixed spelling: "ECMAScipt" → "ECMAScript" (UnnecessaryBlock)
  • Updated FieldDeclarationsShouldBeAtStart description to note properties handling since PMD 7.21.0

Code Quality

  • Fixed ESLint errors: Added error cause chains for better debugging

PMD 7.21.0 Changes

  • Apex: CPD now supports suppression via CPD-ON/CPD-OFF comments
  • Apex: Fixed false positive in FieldDeclarationsShouldBeAtStart rule
  • No breaking changes or rule count changes
  • All 114 tests passing

Testing

  • ✅ Build successful (Java + TypeScript)
  • ✅ All 114 tests passing
  • ✅ Lint passing
  • ✅ Test coverage maintained

## Changes

### PMD Version Update
- Updated PMD from 7.20.0 to 7.21.0 across all required files
  - gradle/libs.versions.toml
  - src/constants.ts
  - package.json (version bumped to 0.37.0-SNAPSHOT)

### Java Dependencies
- Updated junit-jupiter from 5.13.4 to 5.14.3 (latest 5.x compatible with Java 11)
- Verified slf4j-nop (1.7.36) and gson (2.13.2) match PMD Core 7.21.0

### Node Dependencies
- Updated @eslint/js from 9.39.2 to 10.0.1
- Updated eslint from 9.39.2 to 10.0.0
- Updated rimraf from 6.1.2 to 6.1.3
- Updated semver from 7.7.3 to 7.7.4
- Updated typescript-eslint from 8.53.0 to 8.56.0
- Kept @types/node at 20.x (minimum customer version requirement)

### Test Updates
Updated test gold files to match PMD 7.21.0 documentation improvements:
- Fixed spelling: "mantain" → "maintain" (ApexSuggestUsingNamedCred)
- Fixed spelling: "advices" → "advises" (ApexUnitTestMethodShouldHaveIsTestAnnotation)
- Fixed spelling: "accidently" → "accidentally" (GlobalVariable)
- Fixed spelling: "ECMAScipt" → "ECMAScript" (UnnecessaryBlock)
- Updated FieldDeclarationsShouldBeAtStart description to note properties handling since PMD 7.21.0

### Code Quality
- Fixed ESLint errors: Added error cause chains for better debugging

### PMD 7.21.0 Changes
- Apex: CPD now supports suppression via CPD-ON/CPD-OFF comments
- Apex: Fixed false positive in FieldDeclarationsShouldBeAtStart rule
- No breaking changes or rule count changes
- All 114 tests passing

## Testing
- ✅ Build successful (Java + TypeScript)
- ✅ All 114 tests passing
- ✅ Lint passing
- ✅ Test coverage maintained
@aruntyagiTutu aruntyagiTutu force-pushed the arun.tyagi/feb_26_pmd_update branch from 016d8ff to 20a03d5 Compare February 18, 2026 11:27
@aruntyagiTutu aruntyagiTutu merged commit d4dafea into dev Feb 18, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants