Skip to content

Commit 275226b

Browse files
committed
chore(vulnerable-code): Name all copy() parameters
This silences an IDE inspection hint. Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent ca19cd6 commit 275226b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugins/advisors/vulnerable-code/src/funTest/kotlin/VulnerableCodeFunTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class VulnerableCodeFunTest : WordSpec({
3636
"return findings for QUIC" {
3737
val vc = VulnerableCodeFactory.create()
3838
val id = Identifier("Go::github.com/quic-go/quic-go:0.40.0")
39-
val pkg = Package.EMPTY.copy(id, purl = id.toPurl())
39+
val pkg = Package.EMPTY.copy(id = id, purl = id.toPurl())
4040

4141
val results = vc.retrievePackageFindings(setOf(pkg)).values.map { it.normalizeVulnerabilityData() }
4242

@@ -62,7 +62,7 @@ class VulnerableCodeFunTest : WordSpec({
6262
"return findings for Guava" {
6363
val vc = VulnerableCodeFactory.create()
6464
val id = Identifier("Maven:com.google.guava:guava:19.0")
65-
val pkg = Package.EMPTY.copy(id, purl = id.toPurl())
65+
val pkg = Package.EMPTY.copy(id = id, purl = id.toPurl())
6666

6767
val results = vc.retrievePackageFindings(setOf(pkg)).values.map { it.normalizeVulnerabilityData() }
6868

@@ -88,7 +88,7 @@ class VulnerableCodeFunTest : WordSpec({
8888
"return findings for Commons-Compress" {
8989
val vc = VulnerableCodeFactory.create()
9090
val id = Identifier("Maven:org.apache.commons:commons-compress:1.23.0")
91-
val pkg = Package.EMPTY.copy(id, purl = id.toPurl())
91+
val pkg = Package.EMPTY.copy(id = id, purl = id.toPurl())
9292

9393
val results = vc.retrievePackageFindings(setOf(pkg)).values.map { it.normalizeVulnerabilityData() }
9494

@@ -114,7 +114,7 @@ class VulnerableCodeFunTest : WordSpec({
114114
"return findings for Elliptic" {
115115
val vc = VulnerableCodeFactory.create()
116116
val id = Identifier("NPM::elliptic:6.5.7")
117-
val pkg = Package.EMPTY.copy(id, purl = id.toPurl())
117+
val pkg = Package.EMPTY.copy(id = id, purl = id.toPurl())
118118

119119
val results = vc.retrievePackageFindings(setOf(pkg)).values.map { it.normalizeVulnerabilityData() }
120120

0 commit comments

Comments
 (0)