Report a [[platform]] entry without a name in Scan.toml
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Scan.toml の [[platform]] テーブルのパースと、#215 で追加された、文字列でない name または path をその位置で既に報告するコードから始めてください。欠落/空の name ケースについても、ソース位置を含め、その経路を反映してください。まず issue の nmae のタイポで再現し、bal scan --platforms=sonarqube を実行し、次に単純な bal scan を実行して、両方の無言の結果を確認してください。完了とは、使用可能な name がないエントリがスキップされる代わりにその位置付きで報告され、既存の #215 のテストが引き続き通ることを意味します。
索引モデルが issue の本文から書いたものです。
説明
Area
Configuration
Description
A [[platform]] entry in Scan.toml with no name, or an empty one, is skipped without a message, although the docs say both name and path are required. With a typo such as nmae = "sonarqube", bal scan --platforms=sonarqube fails with "platform 'sonarqube' is not available; add its plugin to the [[platform]] table of Scan.toml", which points the user at an entry that already exists.
Raised in the review of #215 (comment) and left out of the 0.14.0 / 0.11.2 release-readiness fixes. #215 already reports a non-string name or path as an error at its position; a missing or empty name is the remaining silent case.
Steps to Reproduce
-
In a package, add this
Scan.toml:[[platform]] nmae = "sonarqube" path = "plugin.jar" -
Run
bal scan --platforms=sonarqube.
Expected Behavior
The entry without a name is reported with its position. Whether it is an error (exit 1) or a warning is to be decided.
Actual Output
bal scan: error: platform 'sonarqube' is not available; add its plugin to the [[platform]] table of Scan.toml. A plain bal scan ignores the entry silently.
Scan Tool Version
0.14.0 (with #215)
- 主要言語
- Java
- スター
- 15
- フォーク
- 12
- 平均マージ
- 2日 8時間
- マージ済み PR(30日)
- 29
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ballerina-platform/static-code-analysis-tool のほかの issue
-
Use the released ballerina/scan 1.0.0 on the 0.11.x line対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンArea/Build Type/Task
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
ballerina-platform/static-code-analysis-tool#200 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Clarify the breaking location change and the password placeholder exception in the 0.14.0 changelog対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンType/Docs
難易度 1/5 1〜3時間 初心者へのやさしさ 74/100
ballerina-platform/static-code-analysis-tool#198 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Area/CLI Type/Improvement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ballerina-platform/static-code-analysis-tool#140 ·
メンテナーはふだん 1 日以内に返信
-
Area/Configuration Type/New Feature
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
ballerina-platform/static-code-analysis-tool#211 ·
メンテナーはふだん 1 日以内に返信
-
ballerina:2 reports methods of an object constructor that initializes a typed class field対応中かも @TharmiganK が 2 日前に担当しました。 オープンArea/Rules Type/Bug
難易度 3/5 1〜2日 初心者へのやさしさ 22/100
ballerina-platform/static-code-analysis-tool#201 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
ballerina-platform/static-code-analysis-tool の issue をすべて見る
似ている issue
-
hermes-queue
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
chrisalunlloyd2-sudo/mindpalace#403 ·
メンテナーはふだん 1 日以内に返信
-
triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
xerial/sqlite-jdbc#1515 ·
メンテナーはふだん 1 日以内に返信
-
SequenceEncoder: a value ending with a backslash swallows the tokens after it (“No state for trait”)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
vassalengine/vassal#15337 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
eclipse-dirigible/dirigible#8636 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug severity-medium XS
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
nikolas-charalambidis/facepalm-maven-plugin#291 ·
メンテナーはふだん 1 日以内に返信