forcedotcom / forcedotcom/code-analyzer
[Feature Request] Allow to share the scanner config file between CI/CD processes and developer environments
- Lenguaje dominante
- TypeScript
- Estrellas
- 240
- Forks
- 52
- Merge medio
- 1 d 23 h
- PR fusionados (30 d)
- 5
Descripción
### 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
Guía de contribución
Línea de trabajo
Comienza rastreando cómo consume code-analyzer.yml el command-line scanner y si la Visual Studio Code extension lo lee; después, inspecciona cómo se resuelven java_classpath_entries y la selección de PMD rule sets. Se considerará terminado cuando la misma configuración del scanner pueda usar rutas y rule sets de PMD específicos del entorno en CI/CD, mediante la command line y en Visual Studio Code.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java, typescript, vscode
- Área
- ci-cd, cli, devtools, tooling
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 30/100