Skip to content

Commit

Permalink
fix(bazel): Lowecase the name as required by the proposal
Browse files Browse the repository at this point in the history
See [1].

[1]: package-url/purl-spec#317

Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
  • Loading branch information
sschuberth committed Nov 22, 2024
1 parent 62e4819 commit 09d7547
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/package-managers/bazel/src/main/kotlin/Bazel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ import org.ossreviewtoolkit.model.config.AnalyzerConfiguration
import org.ossreviewtoolkit.model.config.RepositoryConfiguration
import org.ossreviewtoolkit.model.createAndLogIssue
import org.ossreviewtoolkit.model.orEmpty
import org.ossreviewtoolkit.model.utils.toPurl
import org.ossreviewtoolkit.utils.common.CommandLineTool
import org.ossreviewtoolkit.utils.common.ProcessCapture
import org.ossreviewtoolkit.utils.common.alsoIfNull
Expand Down Expand Up @@ -306,6 +307,7 @@ class Bazel(
packageIdsWithPathOverride.mapTo(result) {
Package(
id = it,
purl = it.toPurl { it.lowercase() },

Check notice on line 310 in plugins/package-managers/bazel/src/main/kotlin/Bazel.kt

View workflow job for this annotation

GitHub Actions / qodana-scan

Nested lambda has shadowed implicit parameter

Implicit parameter 'it' of enclosing lambda is shadowed

Check warning

Code scanning / detekt

Disallow shadowing variable declarations. Warning

Name shadowed: implicit lambda parameter 'it'

Check notice

Code scanning / QDJVMC

Nested lambda has shadowed implicit parameter Note

Implicit parameter 'it' of enclosing lambda is shadowed
declaredLicenses = emptySet(),
description = "",
homepageUrl = "",
Expand Down

0 comments on commit 09d7547

Please sign in to comment.