Skip to content

Commit 5dfdaf3

Browse files
committed
Tag key phrases in license rules
This helps with better selectivity Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 0c688fa commit 5dfdaf3

13 files changed

+29
-27
lines changed

src/licensedcode/data/rules/agpl-3.0-plus_11.RULE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ ignorable_urls:
55
- http://www.gnu.org/licenses
66
---
77

8-
is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
8+
is free software: you can redistribute it and/or modify it under the terms of the {{GNU Affero General Public License}} as published by the Free Software Foundation, {{either version 3 of the License, or (at your option) any later version.}}
99

1010
is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
1111

12-
You should have received a copy of the GNU Affero General Public License along with . If not, see http://www.gnu.org/licenses/.
12+
You should have received a copy of the GNU Affero General Public License along with . If not, see http://www.gnu.org/licenses/.

src/licensedcode/data/rules/agpl-3.0-plus_161.RULE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ referenced_filenames:
77
---
88

99
This script is part of GNU Ghostscript and is distributed under
10-
the terms of the GNU Affero General Public License. See the file COPYING
11-
for more information.
10+
the terms of the {{GNU Affero General Public License.}} See the file COPYING
11+
for more information.

src/licensedcode/data/rules/bsd-2-clause-views_73.RULE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ ignorable_urls:
66
- http://github.com/garycourt/uri-js
77
---
88

9-
License: http://github.com/garycourt/uri-js
9+
License: {{ http://github.com/garycourt/uri-js }}

src/licensedcode/data/rules/bsd-new_541.RULE

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
license_expression: bsd-new
33
is_license_tag: yes
44
relevance: 100
5+
is_contiguous: yes
56
---
67

7-
License
8-
BSD 3-clause license
8+
{{License
9+
BSD 3-clause license}}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
license_expression: bsd-new
3-
is_license_reference: yes
3+
is_license_clue: yes
44
relevance: 90
55
---
66

7-
BSD-style
7+
BSD-style

src/licensedcode/data/rules/gpl-2.0-plus_636.RULE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ relevance: 100
55
---
66

77
Permission is granted to copy, distribute and/or modify this document
8-
under the terms of the GNU General Public License, Version 2 any
9-
later version published by the Free Software Foundation.
8+
under the terms of the {{GNU General Public License, Version 2 any
9+
later version}} published by the Free Software Foundation.

src/licensedcode/data/rules/gpl-2.0-plus_or_lgpl-2.0-plus_14.RULE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ ignorable_urls:
88
---
99

1010
### License ###
11-
This plugin is open sourced under <a href="https://www.gnu.org/licenses/gpl-2.0.html">GNU GPL 2</a> or later and <a href="https://www.gnu.org/licenses/lgpl-2.1.html">GNU LGPL 2</a> or later.
11+
This plugin is open sourced under <a href="https://www.gnu.org/licenses/gpl-2.0.html">{{GNU GPL 2}}</a> {{or later}} and <a href="https://www.gnu.org/licenses/lgpl-2.1.html">{{GNU LGPL 2}}</a> {{or later}}.

src/licensedcode/data/rules/gpl-2.0_with_ecos-exception-2.0_2.RULE

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ referenced_filenames:
66
- COPYING.GPL
77
---
88

9-
The software in this package is distributed under the GNU General
10-
Public License version 2 (with a special exception described below).
9+
The software in this package is distributed under the {{GNU General
10+
Public License version 2 (with a special exception }} described below).
1111

1212
A copy of GNU General Public License (GPL) is included in this distribution,
1313
in the file COPYING.GPL.
1414

15-
As a special exception, if other files instantiate templates or use macros
15+
{{As a special exception, if other files instantiate templates or use macros
1616
or inline functions from this file, or you compile this file and link it
1717
with other works to produce a work based on this file, this file
1818
does not by itself cause the resulting work to be covered
19-
by the GNU General Public License.
19+
by the GNU General Public License. }}

src/licensedcode/data/rules/gpl-3.0_290.RULE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ referenced_filenames:
66
- LICENSE
77
---
88

9-
LICENSE: This program is free software and may be modified and distributed under the terms of the GNU Public License version 3.
10-
# See the LICENSE file at the top of the source tree.
9+
LICENSE: This program is free software and may be modified and distributed under the terms of the {{GNU Public License version 3.}}
10+
# See the LICENSE file at the top of the source tree.

src/licensedcode/data/rules/isc_34.RULE

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ is_license_text: yes
44
---
55

66
The one
7-
exception is licensed with a slightly different MIT variant:
7+
exception is {{licensed with a slightly different MIT variant}}:
88
The contents of this directory are licensed under the following terms:
99

10-
10+
{{
1111
Permission to use, copy, modify, and/or distribute this software for any
1212
purpose with or without fee is hereby granted, provided that the above
1313
copyright notice and this permission notice appear in all copies.
@@ -18,4 +18,5 @@ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1818
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1919
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
2020
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
21-
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22+
}}

0 commit comments

Comments
 (0)