MCPcopy Create free account
hub / github.com/RustCrypto/utils / check_lints

Method check_lints

zlint/src/lib.rs:108–120  ·  view source on GitHub ↗
(&self, ignored: &[&str])

Source from the content-addressed store, hash-verified

106
107impl 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
123const ZLINT_CONFIG: &str = "

Callers

nothing calls this directly

Calls 4

is_successfulMethod · 0.80
insertMethod · 0.80
is_emptyMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected