alpm_lint_config/group.rs
1use clap::ValueEnum;
2use serde::{Deserialize, Serialize};
3use strum::{Display as StrumDisplay, VariantArray};
4
5/// A group lints can belong to.
6///
7/// A [`LintGroup`] is used to en-/disable groups of lints.
8/// Each lint may belong to zero or more groups.
9#[derive(
10 Clone, Debug, Deserialize, PartialEq, Serialize, StrumDisplay, ValueEnum, VariantArray,
11)]
12#[strum(serialize_all = "lowercase")]
13pub enum LintGroup {
14 /// This group contains all lints that are considered fairly pedantic and/or prone to trigger
15 /// false-positives.
16 ///
17 /// When using this group, expect to manually disable some lint rules for your context.
18 Pedantic,
19
20 /// Experimental lints that might not be 100% fine-tuned.
21 ///
22 /// When using this group, the newest and shiniest lints are used.
23 Testing,
24}