mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-01 14:08:23 -06:00
Keep licensing checks below the current complexity gate
This commit is contained in:
@@ -245,6 +245,11 @@ fn check(root: &Path, docs: &Documents, attribution: &assets::Manifest) -> Vec<S
|
||||
problems.push(format!("{}: Lucide collection must credit ISC and Feather MIT", a.path));
|
||||
}
|
||||
}
|
||||
check_model_metadata(attribution, &mut problems);
|
||||
problems
|
||||
}
|
||||
|
||||
fn check_model_metadata(attribution: &assets::Manifest, problems: &mut Vec<String>) {
|
||||
let mut model_paths = BTreeSet::new();
|
||||
for f in attribution.fetched.iter().filter(|f| f.kind == "model") {
|
||||
if [f.title.as_str(), &f.author, &f.source, &f.usage, &f.licence].iter().any(|v| v.trim().is_empty())
|
||||
@@ -265,7 +270,6 @@ fn check(root: &Path, docs: &Documents, attribution: &assets::Manifest) -> Vec<S
|
||||
}
|
||||
}
|
||||
}
|
||||
problems
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
Reference in New Issue
Block a user