(path: &Path)
| 2465 | } |
| 2466 | |
| 2467 | fn filename_looks_like_dockerfile(path: &Path) -> bool { |
| 2468 | let name = path |
| 2469 | .file_name() |
| 2470 | .map(|n| n.to_string_lossy()) |
| 2471 | .unwrap_or_default(); |
| 2472 | let lower = name.to_lowercase(); |
| 2473 | lower.contains("dockerfile") || lower.ends_with(".dockerfile") |
| 2474 | } |
| 2475 | |
| 2476 | fn value_looks_like_local_source(value: &str) -> bool { |
| 2477 | value_is_explicit_local_path(value) || value_looks_like_bare_dockerfile_name(value) |
no outgoing calls
no test coverage detected