| 630 | check_baseimage_root, |
| 631 | ); |
| 632 | fn 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 | |
| 646 | fn collect_nonempty_regfiles( |
| 647 | root: &Dir, |