(value: &str)
| 2478 | } |
| 2479 | |
| 2480 | fn value_is_explicit_local_path(value: &str) -> bool { |
| 2481 | let path = Path::new(value); |
| 2482 | path.is_absolute() |
| 2483 | || matches!(value, "." | "..") |
| 2484 | || value.starts_with("./") |
| 2485 | || value.starts_with("../") |
| 2486 | || value.starts_with("~/") |
| 2487 | } |
| 2488 | |
| 2489 | fn value_looks_like_bare_dockerfile_name(value: &str) -> bool { |
| 2490 | !value.contains('/') && !value.contains(':') && filename_looks_like_dockerfile(Path::new(value)) |
no outgoing calls
no test coverage detected