Skip to content

--only-findings should not omit scan_errors from JSON output #840

Description

@sschuberth

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions