From 24fb91141c93693bd45878107d8e7941fa18e108 Mon Sep 17 00:00:00 2001 From: Frank Viernau Date: Mon, 29 Jan 2024 09:47:02 +0100 Subject: [PATCH] refactor(npm): Reduce severity of warnings from the output of `npm` The warning messages are unrelated ORT and just forwarded. Signed-off-by: Frank Viernau --- .../synthetic/npm-expected-output.yml | 4 +-- .../npm-version-urls-expected-output.yml | 26 +++++++++---------- .../node/src/main/kotlin/Npm.kt | 2 +- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/plugins/package-managers/node/src/funTest/assets/projects/synthetic/npm-expected-output.yml b/plugins/package-managers/node/src/funTest/assets/projects/synthetic/npm-expected-output.yml index 98bc321eab832..0ecfecd67fd2f 100644 --- a/plugins/package-managers/node/src/funTest/assets/projects/synthetic/npm-expected-output.yml +++ b/plugins/package-managers/node/src/funTest/assets/projects/synthetic/npm-expected-output.yml @@ -1192,9 +1192,9 @@ issues: message: "The file was created with an old version of npm, so\ \ supplemental metadata must be fetched from the registry. This is a one-time\ \ fix-up, please be patient..." - severity: "WARNING" + severity: "HINT" - timestamp: "1970-01-01T00:00:00Z" source: "NPM" message: "deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to \"coffeescript\"\ \ (no hyphen)" - severity: "WARNING" + severity: "HINT" 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 d02ca34e80a2e..61c2da3f900d1 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 @@ -5152,54 +5152,54 @@ issues: - timestamp: "1970-01-01T00:00:00Z" source: "NPM" message: "deprecated gulp-header@1.8.12: Removed event-stream from gulp-header" - severity: "WARNING" + severity: "HINT" - timestamp: "1970-01-01T00:00:00Z" source: "NPM" message: "deprecated is-accessor-descriptor@0.1.6: Please upgrade to v0.1.7" - severity: "WARNING" + severity: "HINT" - timestamp: "1970-01-01T00:00:00Z" source: "NPM" message: "deprecated is-accessor-descriptor@1.0.0: Please upgrade to v1.0.1" - severity: "WARNING" + severity: "HINT" - timestamp: "1970-01-01T00:00:00Z" source: "NPM" message: "deprecated is-data-descriptor@0.1.4: Please upgrade to v0.1.5" - severity: "WARNING" + severity: "HINT" - timestamp: "1970-01-01T00:00:00Z" source: "NPM" message: "deprecated is-data-descriptor@1.0.0: Please upgrade to v1.0.1" - severity: "WARNING" + severity: "HINT" - timestamp: "1970-01-01T00:00:00Z" source: "NPM" message: "deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported.\ \ Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises\ \ in 1.x.)" - severity: "WARNING" + severity: "HINT" - timestamp: "1970-01-01T00:00:00Z" source: "NPM" message: "deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated" - severity: "WARNING" + severity: "HINT" - timestamp: "1970-01-01T00:00:00Z" source: "NPM" message: "deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated" - severity: "WARNING" + severity: "HINT" - timestamp: "1970-01-01T00:00:00Z" source: "NPM" message: "deprecated source-map-url@0.4.0: See https://github.com/lydell/source-map-url#deprecated" - severity: "WARNING" + severity: "HINT" - timestamp: "1970-01-01T00:00:00Z" source: "NPM" message: "deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated" - severity: "WARNING" + severity: "HINT" - 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" + severity: "HINT" - timestamp: "1970-01-01T00:00:00Z" source: "NPM" message: "skipping integrity check for git dependency ssh://git@github.com/mochajs/mocha.git " - severity: "WARNING" + severity: "HINT" - 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" + severity: "HINT" diff --git a/plugins/package-managers/node/src/main/kotlin/Npm.kt b/plugins/package-managers/node/src/main/kotlin/Npm.kt index 7dc2ef26d0dff..3e2a8218331f3 100644 --- a/plugins/package-managers/node/src/main/kotlin/Npm.kt +++ b/plugins/package-managers/node/src/main/kotlin/Npm.kt @@ -573,7 +573,7 @@ open class Npm( val issues = mutableListOf() lines.groupLines("npm WARN ").mapTo(issues) { - Issue(source = managerName, message = it, severity = Severity.WARNING) + Issue(source = managerName, message = it, severity = Severity.HINT) } lines.groupLines("npm ERR! ").mapTo(issues) {