Skip to content

Commit d515036

Browse files
authored
Merge pull request #2773 from softsense/issue-2637-allow-license-rules-to-require-the-presence-of-certain-defining-keywords
Allow license rules to require the presence of certain defining keywords
2 parents 1dfd73a + 83840df commit d515036

83 files changed

Lines changed: 4993 additions & 89 deletions

File tree

Some content is hidden

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

AUTHORS.rst

Lines changed: 2 additions & 0 deletions

CHANGELOG.rst

Lines changed: 3 additions & 0 deletions

docs/source/how-to-guides/add_new_license_detection_rule.rst

Lines changed: 4 additions & 0 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This SDK is distributed under the Apache License, Version 2.0, see LICENSE for more information.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
license_expression: apache-2.0
2+
is_license_notice: yes
3+
relevance: 100

src/licensedcode/data/rules/apache-2.0_571.RULE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<licenses>
22
<license>
3-
<name>Apache License 2.0</name>
3+
<name>{{Apache License 2.0}}</name>
44
<url>http://repository.jboss.org/licenses/apache-2.0.txt</url>
55
<distribution>repo</distribution>
66
</license>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Code is released under the [Apache 2.0 license](LICENSE). This `README.md` file and the [`CONTRIBUTING.md`](CONTRIBUTING.md) file are licensed under the Creative Commons Attribution 4.0 International License under the terms and conditions set forth in the file [`LICENSE.docs`](LICENSE.docs). You may obtain a duplicate copy of the same license, titled CC BY-SA 4.0, at http://creativecommons.org/licenses/by-sa/4.0/.
1+
Code is released under the [{{Apache 2.0}} license](LICENSE). This `README.md` file and the [`CONTRIBUTING.md`](CONTRIBUTING.md) file are licensed under the {{Creative Commons Attribution 4.0 International License}} under the terms and conditions set forth in the file [`LICENSE.docs`](LICENSE.docs). You may obtain a duplicate copy of the same license, titled CC BY-SA 4.0, at http://creativecommons.org/licenses/by-sa/4.0/.

src/licensedcode/data/rules/apache-2.0_or_epl-2.0_1.RULE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<licenses>
22
<license>
3-
<name>The Apache Software License, Version 2.0</name>
3+
<name>{{The Apache Software License}}, Version 2.0</name>
44
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
55
<distribution>repo</distribution>
66
</license>
77
<license>
8-
<name>Eclipse Public License - v 2.0</name>
8+
<name>{{Eclipse Public License}} - v 2.0</name>
99
<url>http://www.eclipse.org/legal/epl-v20.html</url>
1010
<distribution>repo</distribution>
1111
</license>

src/licensedcode/data/rules/apache-2.0_or_epl-2.0_2.RULE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<licenses>
22
<license>
3-
<name>The Apache Software License, Version 2.0</name>
3+
<name>The {{Apache Software License, Version 2.0}}</name>
44
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
55
<distribution>repo</distribution>
66
</license>
77
<license>
8-
<name>Eclipse Public License - v 2.0</name>
8+
<name>{{Eclipse Public License - v 2.0}}</name>
99
<url>http://www.eclipse.org/legal/epl-v20.html</url>
1010
<distribution>repo</distribution>
1111
</license>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<licenses><license><name>The Apache Software License, Version 2.0</name><url>http://www.apache.org/licenses/LICENSE-2.0.txt</url><distribution>repo</distribution></license><license><name>GNU Lesser General Public License (LGPL), Version 2.1</name><url>http://www.fsf.org/licensing/licenses/lgpl.txt</url><distribution>repo</distribution></license></licenses>
1+
<licenses><license><name>The {{Apache Software License}}, Version 2.0</name><url>http://www.apache.org/licenses/LICENSE-2.0.txt</url><distribution>repo</distribution></license><license><name>{{GNU Lesser General Public License}} (LGPL), Version 2.1</name><url>http://www.fsf.org/licensing/licenses/lgpl.txt</url><distribution>repo</distribution></license></licenses>

0 commit comments

Comments
 (0)