Function
check_api_dirs
(root: &Dir, _config: &LintExecutionConfig)
Source from the content-addressed store, hash-verified
| 556 | check_api_dirs, |
| 557 | ); |
| 558 | fn check_api_dirs(root: &Dir, _config: &LintExecutionConfig) -> LintResult { |
| 559 | for d in API_DIRS { |
| 560 | let Some(meta) = root.symlink_metadata_optional(d)? else { |
| 561 | return lint_err(format!("Missing API filesystem base directory: /{d}")); |
| 562 | }; |
| 563 | if !meta.is_dir() { |
| 564 | return lint_err(format!( |
| 565 | "Expected directory for API filesystem base directory: /{d}" |
| 566 | )); |
| 567 | } |
| 568 | } |
| 569 | lint_ok() |
| 570 | } |
| 571 | |
| 572 | #[distributed_slice(LINTS)] |
| 573 | static LINT_COMPOSEFS: Lint = Lint::new_warning( |