Add rules table to configuration (#15645)

This commit is contained in:
Micha Reiser 2025-01-23 10:56:58 +01:00 committed by GitHub
parent 23c222368e
commit 7b17c9c445
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 276 additions and 49 deletions

View file

@ -31,6 +31,11 @@ pub struct LintMetadata {
}
#[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd)]
#[cfg_attr(
feature = "serde",
derive(serde::Serialize, serde::Deserialize),
serde(rename_all = "kebab-case")
)]
pub enum Level {
/// The lint is disabled and should not run.
Ignore,
@ -404,7 +409,7 @@ impl From<&'static LintMetadata> for LintEntry {
}
}
#[derive(Debug, Clone, Default)]
#[derive(Debug, Clone, Default, PartialEq, Eq)]
pub struct RuleSelection {
/// Map with the severity for each enabled lint rule.
///