Support custom repositories for the [[analyzer]] of Scan.toml

オープン
#211 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
52/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java
領域
cli

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

Area/Configuration Type/New Feature
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

主要言語
Java
スター
15
フォーク
12
平均マージ
2日 8時間
マージ済み PR(30日)
29

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ballerina-platform/static-code-analysis-tool のほかの issue

ballerina-platform/static-code-analysis-tool の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。