When running ScanCode 2.2.1 with --only-findings and a scan error like exceeding a given --timeout occurs, that error is not written to the JSON output. Instead, the file is treated as if no findings occurred and is completely omitted from the output due to --only-findings.
I believe scan errors should be included in the JSON output despite --only-findings being specified because if there are errors we in fact do not know for sure if there were findings or not, hence it's unsafe to exclude those files when --only-findings is given.
When running ScanCode 2.2.1 with
--only-findingsand a scan error like exceeding a given--timeoutoccurs, that error is not written to the JSON output. Instead, the file is treated as if no findings occurred and is completely omitted from the output due to--only-findings.I believe scan errors should be included in the JSON output despite
--only-findingsbeing specified because if there are errors we in fact do not know for sure if there were findings or not, hence it's unsafe to exclude those files when--only-findingsis given.