Skip to content

Commit

Permalink
Merge pull request #2678 from nexB/2675-mit-license
Browse files Browse the repository at this point in the history
Detect only mit license, not boost #2675
  • Loading branch information
pombredanne authored Aug 28, 2021
2 parents 8bf3352 + 25e7296 commit ee6f452
Show file tree
Hide file tree
Showing 6 changed files with 30 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)
9 changes: 9 additions & 0 deletions src/licensedcode/data/rules/mit_1057.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
license_expression: mit
is_license_notice: yes
relevance: 100
referenced_filenames:
- LICENSE.txt
notes: https://github.com/nexB/scancode-toolkit/issues/2675
ignorable_urls:
- http://opensource.org/licenses/MIT

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 ee6f452

Please sign in to comment.