Skip to content

Commit 27b15fc

Browse files
Add license detection rules
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
1 parent b3aaa47 commit 27b15fc

10 files changed

+83
-62
lines changed

src/licensedcode/data/rules/apache-2.0_and_proprietary-license_5.RULE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ignorable_urls:
1111
## License
1212

1313
The contents of this repository is licensed under the
14-
[Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0).
14+
[{{Apache License, version 2.0}}](http://www.apache.org/licenses/LICENSE-2.0).
1515

16-
Your use of Firebase is governed by the
17-
[Terms of Service for Firebase Services](https://firebase.google.com/terms/).
16+
Your use of {{Firebase}} is governed by the
17+
[Terms of Service for Firebase Services](https://{{firebase.google.com/terms/}}).

src/licensedcode/data/rules/cpl-1.0_23.RULE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ignorable_urls:
88

99
<licenses>
1010
<license>
11-
<name>Common Public License Version 1.0</name>
12-
<url>https://www.opensource.org/licenses/cpl1.0.txt</url>
11+
<name>{{Common Public License Version 1.0}}</name>
12+
<url>https://www.opensource.org/licenses/{{cpl1.0}}.txt</url>
1313
</license>
1414
</licenses>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
license_expression: epl-1.0
3+
is_license_notice: yes
4+
relevance: 100
5+
ignorable_urls:
6+
- http://www.eclipse.org/legal/epl-v10.html
7+
---
8+
9+
/**
10+
*
11+
* All rights reserved. This program and the accompanying materials
12+
* are made available under the terms of the {{Eclipse Public License v1.0}}
13+
* which accompanies this distribution, and is available at
14+
* http://www.eclipse.org/legal/{{epl}}-v10.html
15+
*/
16+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
license_expression: epl-1.0
3+
is_license_notice: yes
4+
relevance: 100
5+
ignorable_urls:
6+
- http://www.eclipse.org/org/documents/epl-v10.php
7+
---
8+
9+
<licenses>
10+
<license>
11+
<name>{{Eclipse Public License - Version 1.0}}</name>
12+
<url>http://www.eclipse.org/org/documents/{{epl-v10}}.php</url>
13+
</license>
14+
</licenses>

src/licensedcode/data/rules/openldap-2.7.RULE

Lines changed: 0 additions & 57 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
license_expression: unknown-license-reference
3+
is_license_reference: yes
4+
relevance: 100
5+
referenced_filenames:
6+
- licenses/LICENSE_HEADER_TEMPLATE
7+
---
8+
9+
licenses/LICENSE_HEADER_TEMPLATE
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
license_expression: unknown-license-reference
3+
is_license_reference: yes
4+
relevance: 100
5+
referenced_filenames:
6+
- LICENSE
7+
---
8+
9+
license :type = Mixed, :file = LICENSE
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
license_expression: unknown-license-reference
3+
is_license_reference: yes
4+
relevance: 100
5+
referenced_filenames:
6+
- LICENSE.txt
7+
---
8+
9+
@type: file #text: LICENSE.txt
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
license_expression: unknown-license-reference
3+
is_license_reference: yes
4+
relevance: 100
5+
referenced_filenames:
6+
- LICENSE.txt
7+
---
8+
9+
license {'@type': 'file', '#text': 'LICENSE.txt'}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
license_expression: uoi-ncsa
3+
is_license_notice: yes
4+
relevance: 100
5+
---
6+
7+
LLVM System Interface Library
8+
-------------------------------------------------------------------------------
9+
The LLVM System Interface Library is licensed under the {{Illinois Open Source
10+
License}} and has the following additional copyright:
11+
12+
Copyright (C) 2004 eXtensible Systems, Inc.

0 commit comments

Comments
 (0)