Open AyanSinhaMahapatra opened 2 months ago
create a rule for gpl-2.0-plus AND bsd-new
with this text
SPDX-License-Identifier: (GPL-2.0+ OR BSD)
and make this 99 relevant
that's the approach for BSD's that will be picked over the SPDX detection, it should at least
I pushed a fix in https://github.com/aboutcode-org/scancode-toolkit/pull/3905/commits/c581828c12c5b692f9b0c080f4da07b9e014285f
The default sort order or LicenseMatch was based on the "matcher" string, hence "1-spdx-id" would always beat a "2-aho" match. Now we have a new "matcher_order" integer attribute that is used to sort instead and the hash and aho always take precedence over SPDX.
Consider the following text:
Here
BSD
is not a valid license expression and even adding a rule is insufficient because theSPDX-License-Identifier
based detection was moved before the hash license detection.We should either: