Skip to content

Commit 4a890f6

Browse files
mnonnenmachersschuberth
authored andcommitted
chore(node): Use the plugin display name as issue source
This improves consistency, even if the value is the same as the previously used constant. Signed-off-by: Martin Nonnenmacher <[email protected]>
1 parent 33b193c commit 4a890f6

File tree

1 file changed

+2
-2
lines changed
  • plugins/package-managers/node/src/main/kotlin/npm

1 file changed

+2
-2
lines changed

plugins/package-managers/node/src/main/kotlin/npm/Npm.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,12 +305,12 @@ internal fun ProcessCapture.extractNpmIssues(): List<Issue> {
305305
// Generally forward issues from the NPM CLI to the ORT NPM package manager. Lower the severity of warnings to
306306
// hints, as warnings usually do not prevent the ORT NPM package manager from getting the dependencies right.
307307
lines.groupLines("npm WARN ", "npm warn ").mapTo(issues) {
308-
Issue(source = "NPM", message = it, severity = Severity.HINT)
308+
Issue(source = NpmFactory.descriptor.displayName, message = it, severity = Severity.HINT)
309309
}
310310

311311
// For errors, however, something clearly went wrong, so keep the severity here.
312312
lines.groupLines("npm ERR! ", "npm error ").mapTo(issues) {
313-
Issue(source = "NPM", message = it, severity = Severity.ERROR)
313+
Issue(source = NpmFactory.descriptor.displayName, message = it, severity = Severity.ERROR)
314314
}
315315

316316
return issues

0 commit comments

Comments
 (0)