[−][src]Struct git_checks::config::CommitSubjectConfig
Configuration for the CommitSubject
check.
No configuration is necessary. The defaults are guided by common commit message guidelines.
Field | Type | Default |
---|---|---|
min_summary | positive integer | 8 |
max_summary | positive integer | 78 |
check_work_in_progress | boolean | true |
check_rebase_commands | boolean | true |
The prefix configurations are lists of strings that are by default empty lists. The
tolerated_prefixes
key is interpreted as a list of regular expressions.
This check is registered as a commit check with the name `"commit_subject".
Example
{
"min_summary": 8,
"max_summary": 78,
"check_work_in_progress": true,
"check_rebase_commands": true,
"tolerated_prefixes": [
"regex"
],
"allowed_prefixes": [
"literal"
],
"disallowed_prefixes": [
"literal"
]
}
Trait Implementations
impl Debug for CommitSubjectConfig
[src]
impl<'de> Deserialize<'de> for CommitSubjectConfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl IntoCheck for CommitSubjectConfig
[src]
type Check = CommitSubject
The check parsed by this configuration.
fn into_check(self) -> Self::Check
[src]
Auto Trait Implementations
impl Send for CommitSubjectConfig
impl Sync for CommitSubjectConfig
impl Unpin for CommitSubjectConfig
impl UnwindSafe for CommitSubjectConfig
impl !RefUnwindSafe for CommitSubjectConfig
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,