-
-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not fail to scan broken package manifests (such as broken test files) [was: Successful scan outputs to stderr] #983
Comments
@geneh Thanks for the report. Were you expecting to get the content to Also I guess than an empty package.json should be silently ignored rather than triggering an error |
Thanks, @pombredanne. Yes, I think it should be silently ignored because we're failing the process on our end if an error is triggered. stderr vs stdout is fine with me. |
good, I will keep this open until this is fixed. |
@geneh Here is what I suggest we do here:
|
@pombredanne It sounds good to me. |
Signed-off-by: Philippe Ombredanne <[email protected]>
Signed-off-by: Philippe Ombredanne <[email protected]>
Fixed in develop and available also in the latest released tags. Thanks! |
Repro steps (scancode-toolkit-2.9.0b1):
git clone [email protected]:benmosher/eslint-plugin-import.git
Run
/Users/gene/Downloads/scancode-toolkit-2.9.0b1/scancode --copyright --license --info --package --license-diag --only-findings --strip-root --timeout 1000 -n 2 --json-pp ./output290-eslint-plugin-import.json ./eslint-plugin-import 2> err.txt
The scanning results are successfully saved in the output file but the results are redirected into stderr instead of stdout, probably because of the warning below (eslint-plugin-import/tests/files/internal-modules/package.json & eslint-plugin-import/tests/files/with-syntax-error/package.json are empty).
The text was updated successfully, but these errors were encountered: