zeta: Add LICENSE.md
and LICENCE.md
to license detection (#25422)
Maybe it's not a very common, but it has a place to be. Release Notes: - Added `LICENSE.md` and `LICENCE.md` files to license detection for edit prediction. --------- Co-authored-by: Marshall Bowers <git@maxdeviant.com>
This commit is contained in:
parent
65f76e6f4d
commit
7e097d529a
1 changed files with 8 additions and 1 deletions
|
@ -1,7 +1,14 @@
|
|||
use regex::Regex;
|
||||
|
||||
/// The most common license locations, with US and UK English spelling.
|
||||
pub const LICENSE_FILES_TO_CHECK: &[&str] = &["LICENSE", "LICENCE", "LICENSE.txt", "LICENCE.txt"];
|
||||
pub const LICENSE_FILES_TO_CHECK: &[&str] = &[
|
||||
"LICENSE",
|
||||
"LICENCE",
|
||||
"LICENSE.txt",
|
||||
"LICENCE.txt",
|
||||
"LICENSE.md",
|
||||
"LICENCE.md",
|
||||
];
|
||||
|
||||
pub fn is_license_eligible_for_data_collection(license: &str) -> bool {
|
||||
// TODO: Include more licenses later (namely, Apache)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue