[][src]Struct git_checks::config::CommitSubjectConfig

pub struct CommitSubjectConfig { /* fields omitted */ }

Configuration for the CommitSubject check.

No configuration is necessary. The defaults are guided by common commit message guidelines.

FieldTypeDefault
min_summarypositive integer8
max_summarypositive integer78
check_work_in_progressbooleantrue
check_rebase_commandsbooleantrue

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]

impl IntoCheck for CommitSubjectConfig[src]

type Check = CommitSubject

The check parsed by this configuration.

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]