Skip to content

Commit

Permalink
fix(npm): Collect issues when listing the packages instead of failing
Browse files Browse the repository at this point in the history
If `npm list` returns with a non-zero exit code, do not throw an
exception and consequently stop the analysis.
Instead, collect the errors from `stderr` as `Issue`s and continue
analyzing the project, because useful dependency information may still
be available.

Resolves #9551.

Signed-off-by: Marcel Bochtler <[email protected]>
  • Loading branch information
MarcelBochtler authored and sschuberth committed Dec 16, 2024
1 parent 8ad3a00 commit 81f58ea
Show file tree
Hide file tree
Showing 5 changed files with 823 additions and 5 deletions.
Loading

0 comments on commit 81f58ea

Please sign in to comment.