MCPcopy Create free account
hub / github.com/bootc-dev/bootc / check_baseimage_root

Function check_baseimage_root

crates/lib/src/lints.rs:632–644  ·  view source on GitHub ↗
(dir: &Dir, config: &LintExecutionConfig)

Source from the content-addressed store, hash-verified

630 check_baseimage_root,
631);
632fn check_baseimage_root(dir: &Dir, config: &LintExecutionConfig) -> LintResult {
633 if let Err(e) = check_baseimage_root_norecurse(dir, config)? {
634 return Ok(Err(e));
635 }
636 // If we have our own documentation with the expected root contents
637 // embedded, then check that too! Mostly just because recursion is fun.
638 if let Some(dir) = dir.open_dir_optional(BASEIMAGE_REF)? {
639 if let Err(e) = check_baseimage_root_norecurse(&dir, config)? {
640 return Ok(Err(e));
641 }
642 }
643 lint_ok()
644}
645
646fn collect_nonempty_regfiles(
647 root: &Dir,

Callers 1

test_baseimage_rootFunction · 0.85

Calls 2

lint_okFunction · 0.85

Tested by 1

test_baseimage_rootFunction · 0.68