aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart-core/src/validation.rs
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-core/src/validation.rs
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-core/src/validation.rs')
0 files changed, 0 insertions, 0 deletions