aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart-spdx-licenses/Cargo.toml
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-04 14:41:59 +0900
committernsfisis <nsfisis@gmail.com>2026-05-04 15:43:56 +0900
commita24d6e2f148417b32188cd1e643439a2858f4eac (patch)
tree593bbb830c6d46a33a40465dbd16fda98082543d /crates/mozart-spdx-licenses/Cargo.toml
parentc59a923669c57adbf6e5eecce7feae59afcf0aac (diff)
downloadphp-mozart-a24d6e2f148417b32188cd1e643439a2858f4eac.tar.gz
php-mozart-a24d6e2f148417b32188cd1e643439a2858f4eac.tar.zst
php-mozart-a24d6e2f148417b32188cd1e643439a2858f4eac.zip
feat(validate): port ValidatingArrayLoader license checks
Mirror Composer's Package\Loader\ValidatingArrayLoader::load() license block: warn on non-string/wrong-shape values, validate the SPDX expression with proprietary→MIT substitution, and surface "extra spaces" diagnostics. Validity is gated on the manifest's `time` field (checked only for releases without a date or within the last 8 days), mirroring Composer's strtotime('-8days') window.
Diffstat (limited to 'crates/mozart-spdx-licenses/Cargo.toml')
-rw-r--r--crates/mozart-spdx-licenses/Cargo.toml3
1 files changed, 0 insertions, 3 deletions
diff --git a/crates/mozart-spdx-licenses/Cargo.toml b/crates/mozart-spdx-licenses/Cargo.toml
index 1500932..7361c93 100644
--- a/crates/mozart-spdx-licenses/Cargo.toml
+++ b/crates/mozart-spdx-licenses/Cargo.toml
@@ -3,9 +3,6 @@ name = "mozart-spdx-licenses"
version.workspace = true
edition.workspace = true
-[dependencies]
-indexmap.workspace = true
-
[build-dependencies]
serde.workspace = true
serde_json.workspace = true