aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands
diff options
context:
space:
mode:
Diffstat (limited to 'crates/mozart/src/commands')
-rw-r--r--crates/mozart/src/commands/validate.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/mozart/src/commands/validate.rs b/crates/mozart/src/commands/validate.rs
index e6778a4..a0c6907 100644
--- a/crates/mozart/src/commands/validate.rs
+++ b/crates/mozart/src/commands/validate.rs
@@ -325,11 +325,15 @@ fn check_license(obj: &serde_json::Map<String, serde_json::Value>, result: &mut
}
// ConfigValidator: deprecated identifier warnings.
+ let spdx = mozart_spdx_licenses::spdx();
for license in &licenses {
if *license == "proprietary" {
continue;
}
- if !mozart_core::validation::is_license_deprecated(license) {
+ let Some(info) = spdx.get_license_by_identifier(license) else {
+ continue;
+ };
+ if !info.deprecated {
continue;
}
let warning = if DEPRECATED_GPL_OR_LATER_RE.is_match(license) {