From eb108b3cbeef899b29e2046b9b807ebbfec760b9 Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Thu, 25 Jan 2024 11:08:17 +0100 Subject: [PATCH] feat(node): Add a new single line warning prefix to support Signed-off-by: Sebastian Schuberth --- .../synthetic/npm-version-urls-expected-output.yml | 12 ++++++++++++ plugins/package-managers/node/src/main/kotlin/Npm.kt | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/plugins/package-managers/node/src/funTest/assets/projects/synthetic/npm-version-urls-expected-output.yml b/plugins/package-managers/node/src/funTest/assets/projects/synthetic/npm-version-urls-expected-output.yml index 35e0594f6e536..d02ca34e80a2e 100644 --- a/plugins/package-managers/node/src/funTest/assets/projects/synthetic/npm-version-urls-expected-output.yml +++ b/plugins/package-managers/node/src/funTest/assets/projects/synthetic/npm-version-urls-expected-output.yml @@ -5191,3 +5191,15 @@ issues: source: "NPM" message: "deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated" severity: "WARNING" +- timestamp: "1970-01-01T00:00:00Z" + source: "NPM" + message: "skipping integrity check for git dependency ssh://git@github.com/jonschlinkert/gulp-format-md.git " + severity: "WARNING" +- timestamp: "1970-01-01T00:00:00Z" + source: "NPM" + message: "skipping integrity check for git dependency ssh://git@github.com/mochajs/mocha.git " + severity: "WARNING" +- timestamp: "1970-01-01T00:00:00Z" + source: "NPM" + message: "skipping integrity check for git dependency ssh://git@github.com/tinydesk/angular-tileview.git " + severity: "WARNING" diff --git a/plugins/package-managers/node/src/main/kotlin/Npm.kt b/plugins/package-managers/node/src/main/kotlin/Npm.kt index 007fb5ef06ac1..cb30e04fd4b72 100644 --- a/plugins/package-managers/node/src/main/kotlin/Npm.kt +++ b/plugins/package-managers/node/src/main/kotlin/Npm.kt @@ -612,7 +612,7 @@ open class Npm( fun mapLinesToIssues(prefix: String, severity: Severity) { val ignorablePrefixes = setOf("code ", "errno ", "path ", "syscall ") - val singleLinePrefixes = setOf("deprecated ") + val singleLinePrefixes = setOf("deprecated ", "skipping integrity check for git dependency ") val minSecondaryPrefixLength = 5 val issueLines = lines.mapNotNull { line ->