Skip to content

Commit

Permalink
Add new MIT license detection rules #2675
Browse files Browse the repository at this point in the history
Reported-by: Henrik Sandklef @hesa
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
  • Loading branch information
pombredanne committed Aug 27, 2021
1 parent 8bf3352 commit b7a0db5
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/licensedcode/data/rules/mit_1056.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Distributed under the MIT License (MIT)
4 changes: 4 additions & 0 deletions src/licensedcode/data/rules/mit_1056.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
license_expression: mit
is_license_notice: yes
relevance: 100
notes: https://github.com/nexB/scancode-toolkit/issues/2675
2 changes: 2 additions & 0 deletions src/licensedcode/data/rules/mit_1057.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
or copy at http://opensource.org/licenses/MIT)
6 changes: 6 additions & 0 deletions src/licensedcode/data/rules/mit_1057.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
license_expression: mit
is_license_notice: yes
relevance: 100
referenced_filenames:
- LICENSE.txt
notes: https://github.com/nexB/scancode-toolkit/issues/2675
11 changes: 11 additions & 0 deletions tests/licensedcode/data/datadriven/lic4/2675-sqlite.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* @file Exception.cpp
* @ingroup SQLiteCpp
* @brief Encapsulation of the error message from SQLite3 on a std::runtime_error.
*
* Copyright (c) 2012-2020 Sebastien Rombauts (sebastien.rombauts@gmail.com)
*
* Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
* or copy at http://opensource.org/licenses/MIT)
*/
#include <SQLiteCpp/Exception.h>
3 changes: 3 additions & 0 deletions tests/licensedcode/data/datadriven/lic4/2675-sqlite.cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
license_expressions:
- mit

0 comments on commit b7a0db5

Please sign in to comment.