diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-04 15:02:07 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-04 15:44:11 +0900 |
| commit | fe9e449adb6bd57e66c7ba82ba3effd93b61942e (patch) | |
| tree | 3146f0de4dfc2d2024226d84ee1761aac2c873bd /crates/mozart/src | |
| parent | d4309521f10b6f0090ef2548fb8f241949074e1f (diff) | |
| download | php-mozart-fe9e449adb6bd57e66c7ba82ba3effd93b61942e.tar.gz php-mozart-fe9e449adb6bd57e66c7ba82ba3effd93b61942e.tar.zst php-mozart-fe9e449adb6bd57e66c7ba82ba3effd93b61942e.zip | |
refactor(spdx-licenses): remove unused functions
Diffstat (limited to 'crates/mozart/src')
| -rw-r--r-- | crates/mozart/src/commands/validate.rs | 6 |
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) { |
