Support custom repositories for the [[analyzer]] of Scan.toml
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 52/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Java
- Stelle
- 15
- Fork
- 12
- Merge medio
- 2g 8h
- PR unite (30g)
- 29
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ballerina-platform/static-code-analysis-tool
-
Area/Configuration Type/Improvement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ballerina-platform/static-code-analysis-tool#217 ·
I maintainer di solito rispondono entro 1 giorno
-
Use the released ballerina/scan 1.0.0 on the 0.11.x lineForse già presa Una pull request collegata a questa issue è aperta o già unita. ApertaArea/Build Type/Task
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
ballerina-platform/static-code-analysis-tool#200 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Clarify the breaking location change and the password placeholder exception in the 0.14.0 changelogForse già presa Una pull request collegata a questa issue è aperta o già unita. ApertaType/Docs
Difficoltà 1/5 1-3 ore Idoneità per principianti 74/100
ballerina-platform/static-code-analysis-tool#198 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Area/CLI Type/Improvement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ballerina-platform/static-code-analysis-tool#140 ·
I maintainer di solito rispondono entro 1 giorno
-
ballerina:2 reports methods of an object constructor that initializes a typed class fieldForse già presa @TharmiganK l’ha presa 2 giorni fa. ApertaArea/Rules Type/Bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 22/100
ballerina-platform/static-code-analysis-tool#201 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di ballerina-platform/static-code-analysis-tool
Issue simili
-
hermes-queue
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
chrisalunlloyd2-sudo/mindpalace#403 ·
I maintainer di solito rispondono entro 1 giorno
-
triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
xerial/sqlite-jdbc#1515 ·
I maintainer di solito rispondono entro 1 giorno
-
SequenceEncoder: a value ending with a backslash swallows the tokens after it (“No state for trait”)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
vassalengine/vassal#15337 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
eclipse-dirigible/dirigible#8636 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug severity-medium XS
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
nikolas-charalambidis/facepalm-maven-plugin#291 ·
I maintainer di solito rispondono entro 1 giorno