Skip to content

CHANGE @W-20084011@ Updated node dependencies - PMD Version Update from 7.17.0 to 7.18.0 - #380

Merged
stephen-carter-at-sf merged 8 commits into
devfrom
t/code-analyzer/w-20084011/pmd-update-7.18.0
Nov 24, 2025
Merged

CHANGE @W-20084011@ Updated node dependencies - PMD Version Update from 7.17.0 to 7.18.0#380
stephen-carter-at-sf merged 8 commits into
devfrom
t/code-analyzer/w-20084011/pmd-update-7.18.0

Conversation

@emypaulson-1993

@emypaulson-1993 emypaulson-1993 commented Nov 19, 2025

Copy link
Copy Markdown
Contributor

PMD 7.18.0 Release notes - https://docs.pmd-code.org/pmd-doc-7.18.0/pmd_release_notes.html

All tests are passing in code-analyzer-core repo .
Ran scanner comparison tool successfully and added the results in Scanner Comparison Results Drive .

Screenshot 2025-11-19 at 10 33 38 AM Screenshot 2025-11-21 at 4 57 01 PM

@emypaulson-1993 emypaulson-1993 changed the title CHANGE @W- 20084011 - PMD Version Update from 7.17.0 to 7.18.0 CHANGE @W-20084011 - PMD Version Update from 7.17.0 to 7.18.0 Nov 19, 2025
@emypaulson-1993 emypaulson-1993 changed the title CHANGE @W-20084011 - PMD Version Update from 7.17.0 to 7.18.0 CHANGE @W-20084011@ PMD Version Update from 7.17.0 to 7.18.0 Nov 19, 2025
Comment thread packages/code-analyzer-pmd-engine/pmd-cpd-wrappers/build.gradle.kts Outdated
Comment thread packages/code-analyzer-pmd-engine/pmd-rules/build.gradle.kts Outdated
Comment thread .github/workflows/verify-pr.yml Outdated
Comment thread packages/code-analyzer-pmd-engine/pmd-cpd-wrappers/build.gradle.kts Outdated
Comment thread packages/code-analyzer-pmd-engine/pmd-rules/build.gradle.kts Outdated
Comment thread packages/code-analyzer-pmd-engine/gradle/libs.versions.toml Outdated
@emypaulson-1993 emypaulson-1993 changed the title CHANGE @W-20084011@ PMD Version Update from 7.17.0 to 7.18.0 CHANGE @W-20084011@ Updated node dependencies - PMD Version Update from 7.17.0 to 7.18.0 Nov 21, 2025
"@salesforce/code-analyzer-engine-api": "0.31.0",
"@salesforce/code-analyzer-eslint8-engine": "0.8.0",
"@salesforce/eslint-config-lwc": "^4.0.0",
"@salesforce-ux/eslint-plugin-slds": "^1.0.6",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stephen-carter-at-sf @jfeingold35 : The @salesforce-ux/eslint-plugin-slds package provides CSS linting rules, but ESLint v9 requires a separate language plugin (@eslint/css) to parse CSS files . Hence I have added Added @eslint/css dependency in the package.json ""@eslint/css": "^0.14.1"," .

@stephen-carter-at-sf stephen-carter-at-sf Nov 21, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @salesforce-ux/eslint-plugin-slds package already has a dependency on @eslint/css because they directly depend on it. Unless we directly depend on @eslint/css within our engine package, it shouldn't be in our package.json. We should be relying on pulling in config objects (which pull in plugins) - not plugins directly.

@emypaulson-1993 emypaulson-1993 Nov 24, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stephen-carter-at-sf : I debugged the issue . It's a bug with SLDS plugin .
The SLDS plugin has @eslint/css as a dependency and references language: "css/css" in their config, but they never actually register the CSS plugin:

// @salesforce-ux/eslint-plugin-slds/build/index.js
var cssConfigArray = [{
  language: "css/css",              // ← References CSS language
  plugins: {
    "@salesforce-ux/slds": plugin   // ← Only SLDS plugin, missing css plugin!
  }
}]; // ←  This causes the error: `"Could not find 'css' in plugin 'css'"`

We need to add @eslint/css as a direct dependency and manually register it when consuming their config to fix this issue.
I have logged a bug on SLDS team : salesforce-ux/slds-linter#314

Comment thread packages/code-analyzer-core/package.json Outdated
Comment thread packages/code-analyzer-engine-api/package.json Outdated
import lwcEslintPluginLwcPlatform from "@lwc/eslint-plugin-lwc-platform";
import salesforceEslintConfigLwc from "@salesforce/eslint-config-lwc";
import sldsEslintPlugin from "@salesforce-ux/eslint-plugin-slds";
import eslintCss from "@eslint/css";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why shouldn't be needing this. Doesn't the @salesforce-ux/eslint-plugin-slds config bring this in for us?

@emypaulson-1993 emypaulson-1993 Nov 24, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +137 to +140
plugins: {
...cssConfig.plugins,
css: eslintCss
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you adding in the plugin. Shouldn't the cssConfig be bringing in this plugin for us?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"@salesforce/code-analyzer-engine-api": "0.31.0",
"@types/node": "^20.0.0",
"@salesforce/code-analyzer-engine-api": "0.32.0-SNAPSHOT",
"@types/node": "^24.10.1",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Comment thread packages/code-analyzer-pmd-engine/package.json Outdated
"@types/node": "^20.0.0",
"isbinaryfile": "^5.0.4",
"@salesforce/code-analyzer-engine-api": "0.32.0-SNAPSHOT",
"@types/node": "^24.10.1",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Comment thread packages/code-analyzer-retirejs-engine/package.json Outdated
Comment thread packages/code-analyzer-sfge-engine/package.json Outdated
@stephen-carter-at-sf
stephen-carter-at-sf merged commit 0b5b4f3 into dev Nov 24, 2025
7 checks passed
@emypaulson-1993
emypaulson-1993 deleted the t/code-analyzer/w-20084011/pmd-update-7.18.0 branch December 4, 2025 06:27
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