Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Feature Request] Allow to share the scanner config file between CI/CD processes and developer environments

Open
#1,894 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java, typescript, vscode

Research direction

Start by tracing how code-analyzer.yml is consumed by the command-line scanner and whether the Visual Studio Code extension reads it, then inspect how java_classpath_entries and PMD rule-set selection are resolved. Done means the same scanner configuration can use environment-specific PMD paths and rule sets in CI/CD, command-line use, and Visual Studio Code.

Written by the indexing model from the issue text.

Description

USER STORY
Need/Problem Description

As a developer, I would like to use the same scanner configuration which is used when running CI/CD processes (including same custom PMD rules) while my PMD jars containing classes required by the custom PMD rules are located in other folders than for CI/CD processes - both when using the command line as well as in Visual Studio Code.

Describe your Desired Solution

An environment variable could be used inside the PMD classpath in code-analyzer.yml:
java_classpath_entries:
- %CUSTOM_PMD%/pmd-jars/pmd-customjar.jar

Or;
java_classpath_entries:
- %CUSTOM_PMD_JARS%

A second variable could contain the PMD rule sets to execute.

The environment variable could be set to correct values in CI/CD and for each developer machine.

While I believe that the Visual Studio Code extension does not consider the scanner configuration file (code-analyzer.yml), if that is implemented, it could consider that environment variable as well.

Alternatives Considered

No response

Additional Context (Screenshots, Files, etc)

No response

Workaround

No response

Urgency

Low

Dominant language
TypeScript
Stars
240
Forks
52
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from forcedotcom/code-analyzer

All issues in forcedotcom/code-analyzer

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.