mit-commit-message-lints 6.1.0

Check the correctness of a specific commit message. Designed to be used in tools providing commit-msg style hooks
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! A module representing the scope

/// The scopes we might read the config for
#[derive(Ord, PartialOrd, Eq, PartialEq, Debug, Clone, clap::ValueEnum, Copy)]
pub enum Scope {
    /// The home directory
    Global,
    /// The local folder
    Local,
}
impl Scope {
    /// If this scope is global or not
    #[must_use]
    pub fn is_global(&self) -> bool {
        &Self::Global == self
    }
}