(name: &str)
| 37 | // --------------------------------------------------------------------------- |
| 38 | |
| 39 | fn env_truthy(name: &str) -> bool { |
| 40 | match std::env::var(name) { |
| 41 | Ok(v) => matches!(v.as_str(), "1" | "true" | "TRUE" | "yes" | "YES"), |
| 42 | Err(_) => false, |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | fn is_project_config_disabled() -> bool { |
| 47 | env_truthy("OPENCODE_DISABLE_PROJECT_CONFIG") |
no outgoing calls
no test coverage detected