Skip to content

Commit b2c4bd0

Browse files
authored
Detect plantuml license (#4666)
* add rule for detecting plantuml license Signed-off-by: uttam282005 <uttam282005@gmail.com> * add tests Signed-off-by: uttam282005 <uttam282005@gmail.com> * add false positive rule to avoid false gpl license detection Signed-off-by: uttam282005 <uttam282005@gmail.com> * remove local test file Signed-off-by: uttam282005 <uttam282005@gmail.com> * add faq url as ignorable Signed-off-by: uttam282005 <uttam282005@gmail.com> * remove trailing slash from epl urls Signed-off-by: uttam282005 <uttam282005@gmail.com> --------- Signed-off-by: uttam282005 <uttam282005@gmail.com>
1 parent 60e3d9a commit b2c4bd0

File tree

4 files changed

+43
-0
lines changed

4 files changed

+43
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
is_false_positive: yes
3+
notes: False positive for PlantUML javadoc badge URL containing gplv2
4+
---
5+
6+
[![javadoc](https://javadoc.io/badge2/net.sourceforge.plantuml/plantuml-gplv2/javadoc.svg)](https://javadoc.io/doc/net.sourceforge.plantuml/plantuml-gplv2)
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
license_expression: (mit OR apache-2.0 OR epl-2.0 OR lgpl-3.0-plus OR gpl-3.0-plus)
3+
is_license_notice: yes
4+
relevance: 100
5+
ignorable_urls:
6+
- https://www.gnu.org/licenses/gpl-3.0.html
7+
- https://www.gnu.org/licenses/lgpl-3.0.html
8+
- https://www.apache.org/licenses/LICENSE-2.0
9+
- https://www.eclipse.org/legal/epl-2.0
10+
- https://opensource.org/licenses/MIT
11+
- https://plantuml.com/en/faq#ddbc9d04378ee462
12+
---
13+
14+
## 📃 License
15+
16+
PlantUML is licensed under several licenses; you can choose the one that suits you best:
17+
18+
- [GPL license](https://www.gnu.org/licenses/gpl-3.0.html)
19+
- [LGPL license](https://www.gnu.org/licenses/lgpl-3.0.html)
20+
- [Apache license](https://www.apache.org/licenses/LICENSE-2.0)
21+
- [Eclipse Public license](https://www.eclipse.org/legal/epl-2.0/)
22+
- [MIT license](https://opensource.org/licenses/MIT)
23+
24+
For more information, please refer to the [PlantUML license FAQ](https://plantuml.com/en/faq#ddbc9d04378ee462) to help determine which license is appropriate for your use case.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## 📃 License
2+
3+
PlantUML is licensed under several licenses; you can choose the one that suits you best:
4+
5+
- [GPL license](https://www.gnu.org/licenses/gpl-3.0.html)
6+
- [LGPL license](https://www.gnu.org/licenses/lgpl-3.0.html)
7+
- [Apache license](https://www.apache.org/licenses/LICENSE-2.0)
8+
- [Eclipse Public license](https://www.eclipse.org/legal/epl-2.0/)
9+
- [MIT license](https://opensource.org/licenses/MIT)
10+
11+
For more information, please refer to the [PlantUML license FAQ](https://plantuml.com/en/faq#ddbc9d04378ee462) to help determine which license is appropriate for your use case.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
license_expressions:
2+
- mit OR apache-2.0 OR epl-2.0 OR lgpl-3.0-plus OR gpl-3.0-plus

0 commit comments

Comments
 (0)