Bug: Gradle map-style dependencies (`implementation group: 'g', name: 'a', version: 'v'`) are dropped
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- kotlin, typescript
調査の方向性
Start in src/core-open/scanners/java-scanner.ts at parseGradleBuild (around lines 444–459) and read the existing Gradle string notation parsing and pushGradleCoord flow. Add coverage for Groovy and Kotlin map notation, including entries without a version, and check that configuration names, section rules, and de-duplication are preserved. Done means the examples produce the expected coordinates, testImplementation lands in devDependencies, and missing versions behave like string entries.
索引モデルが issue の本文から書いたものです。
説明
Context
The Gradle regexes in parseGradleBuild (src/core-open/scanners/java-scanner.ts, around lines 444–459) only read string notation, implementation 'group:artifact:version' and implementation("group:artifact:version").
Groovy builds, especially older ones, often use the map form instead:
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.14.0'
testImplementation(group: "junit", name: "junit", version: "4.13.2")
Kotlin DSL has the same shape: implementation(group = "org.apache.commons", name = "commons-lang3", version = "3.14.0").
None of these produce a row today, so the dependency is missing from vg scan and vg sbom export.
What to do
- Add a parser for the map form in both Groovy (
key: 'value') and Kotlin (key = "value") syntax, with or without parentheses, in any key order. - Feed the result through
pushGradleCoordwith the right configuration name so section rules and de-duplication still apply. - Add tests for Groovy and Kotlin map notation, including one without a
versionkey.
Acceptance
- The Groovy and Kotlin examples above each produce one row with the right coordinate and version
-
testImplementation group: ...lands indevDependencies - A map entry without
versionbehaves like a string entry without a version
- 主要言語
- TypeScript
- スター
- 4
- フォーク
- 3
- 平均マージ
- 1日 22時間
- マージ済み PR(30日)
- 76
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
vibgrate/cli のほかの issue
-
documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
documentation Entwickler
難易度 1/5 1時間未満 初心者へのやさしさ 89/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
area:frontend bug ci-test level:low priority:high
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
skytuhua-org/Gen-V1#2974 · コメント 4 件 ·
メンテナーはふだん 2 日以内に返信
-
area: cli area: core priority: P3 type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
appandflow/stim#6736 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
naomiaro/waveform-playlist#973 ·
メンテナーはふだん 1 日以内に返信