Support custom repositories for the [[analyzer]] of Scan.toml
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 52/100
Línea de trabajo
Start in ScanUtils.loadAnalyzer, where any repository value other than "local" is currently dropped, and look at how the generated dependency gets its repository field for the local case. Check how Settings.toml repository ids are read elsewhere in the tool so the same lookup can be reused. Done when an [[analyzer]] with a declared repository id resolves through that repository, and an unknown id fails with an error that includes its position. Ask in the issue how the repository id should be validated before you start.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Area
Configuration
Problem
An [[analyzer]] in Scan.toml can only be resolved from Ballerina Central or, with repository = "local", from the local repository. Any other repository value is dropped without a message (ScanUtils.loadAnalyzer), so the analyzer is looked up in Central instead.
Ballerina supports custom repositories: a Maven repository declared in Settings.toml with an id can be used by a dependency through repository = "<id>" in Ballerina.toml. An organization that publishes its static code analyzer to such a repository can't use it with bal scan.
The release-readiness fixes for #190 make a repository other than "local" an error saying it is not supported, instead of dropping it.
Proposed Solution
Accept the id of a repository declared in Settings.toml as the repository of an [[analyzer]], and pass it to the generated dependency, as is done for "local". Report an unknown repository id as an error with its position.
Alternatives
Keep only Central and "local", and publish analyzers to Central.
Version
0.14.0
- Lenguaje dominante
- Java
- Estrellas
- 15
- Forks
- 12
- Merge medio
- 2 d 8 h
- PR fusionados (30 d)
- 29
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ballerina-platform/static-code-analysis-tool
-
Area/Configuration Type/Improvement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ballerina-platform/static-code-analysis-tool#217 ·
Los mantenedores suelen responder en 1 día
-
Use the released ballerina/scan 1.0.0 on the 0.11.x linePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. AbiertoArea/Build Type/Task
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
ballerina-platform/static-code-analysis-tool#200 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Clarify the breaking location change and the password placeholder exception in the 0.14.0 changelogPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. AbiertoType/Docs
Dificultad 1/5 1-3 horas Aptitud para principiantes 74/100
ballerina-platform/static-code-analysis-tool#198 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Area/CLI Type/Improvement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ballerina-platform/static-code-analysis-tool#140 ·
Los mantenedores suelen responder en 1 día
-
ballerina:2 reports methods of an object constructor that initializes a typed class fieldPosiblemente ocupada @TharmiganK la tomó hace 2 días. AbiertoArea/Rules Type/Bug
Dificultad 3/5 1-2 días Aptitud para principiantes 22/100
ballerina-platform/static-code-analysis-tool#201 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de ballerina-platform/static-code-analysis-tool
Issues similares
-
hermes-queue
Dificultad 1/5 1-3 horas Aptitud para principiantes 85/100
chrisalunlloyd2-sudo/mindpalace#403 ·
Los mantenedores suelen responder en 1 día
-
triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
xerial/sqlite-jdbc#1515 ·
Los mantenedores suelen responder en 1 día
-
SequenceEncoder: a value ending with a backslash swallows the tokens after it (“No state for trait”)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
vassalengine/vassal#15337 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
eclipse-dirigible/dirigible#8636 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug severity-medium XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
nikolas-charalambidis/facepalm-maven-plugin#291 ·
Los mantenedores suelen responder en 1 día