(&self, ignored: &[&str])
| 106 | |
| 107 | impl LintResult { |
| 108 | fn check_lints(&self, ignored: &[&str]) -> bool { |
| 109 | let mut failed = HashMap::<String, LintStatus>::new(); |
| 110 | |
| 111 | for (key, value) in &self.0 { |
| 112 | if !value.is_successful() && !ignored.contains(&key.as_str()) { |
| 113 | failed.insert(String::from(key), value.clone()); |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | eprintln!("failed lints: {failed:?}"); |
| 118 | |
| 119 | failed.is_empty() |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | const ZLINT_CONFIG: &str = " |
nothing calls this directly
no test coverage detected