From 7e097d529acd3e7adc9ae06620bb622060f08295 Mon Sep 17 00:00:00 2001 From: Aivaz Latypov Date: Sun, 23 Feb 2025 20:08:24 +0500 Subject: [PATCH] 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 --- crates/zeta/src/license_detection.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/zeta/src/license_detection.rs b/crates/zeta/src/license_detection.rs index f2c12c1bcc11920b817880aaeb5f6de0ef4a0353..e27ef8918dfbfc498793da20b887a358cc0761b1 100644 --- a/crates/zeta/src/license_detection.rs +++ b/crates/zeta/src/license_detection.rs @@ -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)