1 /// Lint data parsed from the Clippy source code.
2 #[derive(Clone, PartialEq, Debug)]
4 pub name: &'static str,
5 pub group: &'static str,
6 pub desc: &'static str,
7 pub deprecation: Option<&'static str>,
8 pub module: &'static str,
11 #[derive(PartialOrd, PartialEq, Ord, Eq)]
18 pub const LINT_LEVELS: [(&str, Level); 8] = [
19 ("correctness", Level::Deny),
20 ("style", Level::Warn),
21 ("complexity", Level::Warn),
22 ("perf", Level::Warn),
23 ("restriction", Level::Allow),
24 ("pedantic", Level::Allow),
25 ("nursery", Level::Allow),
26 ("cargo", Level::Allow),