Skip to content

License detection_log: position and "- not-combined" values are eventually confusing #3266

@pombredanne

Description

@pombredanne

The detection log should be positioned at the bottom not at the top in the JSON/YAML outputs
But the value "not-combined" is puzzling and not obvious. It is further more cofusing when looking this kind of results:

    -   identifier: mit_and_gpl_2_0-75d8c570-6ad2-0cbe-e6b5-432c94d552a9
        license_expression: mit AND gpl-2.0
        count: 1
        detection_log:
            - not-combined
        matches:
            -   score: '100.0'
                start_line: 5
                end_line: 5
                matched_length: 3
                match_coverage: '100.0'
                matcher: 2-aho
                license_expression: mit
                rule_identifier: mit_172.RULE
                rule_url: https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/mit_172.RULE
            -   score: '100.0'
                start_line: 7
                end_line: 7
                matched_length: 2
                match_coverage: '100.0'
                matcher: 2-aho
                license_expression: gpl-2.0
                rule_identifier: gpl-2.0_818.RULE
                rule_url: https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0_818.RULE

Here two licenses matches have been obviously combined in a single expression in the resulting license detection. Yet this is reported as "not combined"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions