forcedotcom / forcedotcom/code-analyzer
[Feature Request] Allow to share the scanner config file between CI/CD processes and developer environments
- Lingua principale
- TypeScript
- Stelle
- 240
- Fork
- 52
- Merge medio
- 1g 23h
- PR unite (30g)
- 5
Descrizione
### 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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia tracciando come code-analyzer.yml viene utilizzato dal command-line scanner e verificando se la Visual Studio Code extension lo legge, quindi esamina come vengono risolti java_classpath_entries e la selezione dei PMD rule sets. Il lavoro è completato quando la stessa configurazione dello scanner può usare percorsi e rule sets di PMD specifici dell’ambiente in CI/CD, tramite command line e in Visual Studio Code.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java, typescript, vscode
- Ambito
- ci-cd, cli, devtools, tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 30/100