Skip to content

Commit 38cf1ad

Browse files
Merge pull request #4412 from aboutcode-org/improve-license-detection
Improve license detection
2 parents 742b20c + cfb9140 commit 38cf1ad

File tree

100 files changed

+4874
-1451
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+4874
-1451
lines changed

src/licensedcode/cache.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,9 @@ def build_spdx_license_expression(license_expression, licensing=None):
515515
>>> spdx = "MIT OR GPL-2.0-only WITH LicenseRef-scancode-generic-exception"
516516
>>> assert build_spdx_license_expression(exp) == spdx
517517
"""
518+
if not license_expression:
519+
return
520+
518521
if not licensing:
519522
licensing = get_licensing()
520523
validate_spdx_license_keys(license_expression=license_expression, licensing=licensing)

src/licensedcode/data/rules/lead-in_unknown_43.RULE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
license_expression: unknown-license-reference
3-
is_license_tag: yes
3+
is_license_clue: yes
44
relevance: 60
55
notes: Creative commons tag seen in RDF or XML documents
66
---

0 commit comments

Comments
 (0)