pub struct LintConfig {
pub types: Option<Vec<String>>,
pub scopes: Option<Vec<String>>,
pub max_header_length: usize,
pub require_scope: bool,
}Expand description
Configuration for linting conventional commit messages.
Fields§
§types: Option<Vec<String>>Allowed commit types. None means any lowercase type is accepted.
scopes: Option<Vec<String>>Allowed scopes. None means any scope is accepted.
max_header_length: usizeMaximum header line length. Default: 100.
require_scope: boolWhether a scope is required. Default: false.
Trait Implementations§
Source§impl Clone for LintConfig
impl Clone for LintConfig
Source§fn clone(&self) -> LintConfig
fn clone(&self) -> LintConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LintConfig
impl Debug for LintConfig
Auto Trait Implementations§
impl Freeze for LintConfig
impl RefUnwindSafe for LintConfig
impl Send for LintConfig
impl Sync for LintConfig
impl Unpin for LintConfig
impl UnsafeUnpin for LintConfig
impl UnwindSafe for LintConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more