mit_commit_message_lints/scope.rs
1//! A module representing the scope
2
3/// The scopes we might read the config for
4#[derive(Ord, PartialOrd, Eq, PartialEq, Debug, Clone, clap::ValueEnum, Copy)]
5pub enum Scope {
6 /// The home directory
7 Global,
8 /// The local folder
9 Local,
10}
11impl Scope {
12 /// If this scope is global or not
13 #[must_use]
14 pub fn is_global(&self) -> bool {
15 &Self::Global == self
16 }
17}
18
19impl Scope {}