We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2f36d6 commit ed4fbf9Copy full SHA for ed4fbf9
src/licensedcode/detection.py
@@ -338,20 +338,10 @@ def identifier_with_expression(self):
338
def is_unknown(self):
339
"""
340
Return True if there are unknown license keys in the license expression
341
- for this detection, return False otherwise.
+ for this detection, return False otherwise. By design these are licenses with "unknown" in
342
+ their key.
343
- unknown_license_keys = [
344
- "unknown-license-reference",
345
- "unknown-spdx",
346
- "unknown",
347
- "free-unknown"
348
- ]
349
-
350
- for license_key in unknown_license_keys:
351
- if license_key in self.license_expression:
352
- return True
353
354
- return False
+ return 'unknown' in self.license_expression
355
356
def get_start_end_line(self):
357
0 commit comments