Skip to content

Commit e2e82a5

Browse files
committed
Improve how we detect license in Windows PEs
If there is a license tag, use it for dteection, otherwise use all declared licensing information. Add new rules to improve license detection accuracy. Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent b5f0ae2 commit e2e82a5

22 files changed

+877
-7
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
license_expression: cc0-1.0
22
is_license_reference: yes
3-
relevance: 100
3+
relevance: 50
4+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
License
2+
This program is free software; you can redistribute it and/or modify it under
3+
the terms of the GNU General Public License
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
license_expression: gpl-1.0-plus
2+
is_license_notice: yes
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
you can redistribute it and/or modify it under
2+
the terms of the GNU General Public License;see www.gnu.org/copyleft/gpl.html.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
license_expression: gpl-1.0-plus
2+
is_license_notice: yes
3+
ignorable_urls:
4+
- http://www.gnu.org/copyleft/gpl.html
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
you can redistribute it and/or modify it under
2+
the terms of the GNU General Public License
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
license_expression: gpl-1.0-plus
2+
is_license_notice: yes
3+
relevance: 100
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
License
2+
This program is free software; you can redistribute it and/or modify it under
3+
the terms of the GNU Lesser General Public License;see www.gnu.org/copyleft/lesser.html.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
license_expression: lgpl-2.1-plus
2+
is_license_notice: yes
3+
ignorable_urls:
4+
- http://www.gnu.org/copyleft/lesser.html
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This program is free software; you can redistribute it and/or modify it under
2+
the terms of the GNU Lesser General Public License;see www.gnu.org/copyleft/lesser.html.

0 commit comments

Comments
 (0)