Struct git_checks::checks::CommitSubject [] [src]

pub struct CommitSubject { /* fields omitted */ }

Check commit message subjects for invalid patterns.

Methods

impl CommitSubject
[src]

Checks commit message subjects for invalid patterns

Patterns which are checked for: - overly long or short summary lines; - work-in-progress messages; and - fixup! and squash! messages.

Commit messages which appear to have been auto generated by actions such as merging or reverting commits will skip the summary line length limit (if enforced).

Check the summary line with the given limits.

Checks for work-in-progress commits

Commit messages which mention WIP or wip at the beginning of their commit messages are rejected since they are (nominally) incomplete.

Check for rebase commands

Rebase commands include commits which begin with fixup! or squash!. These subjects are used to indicate that the commit belongs somewhere else in the branch and should be completed before merging.

Trait Implementations

impl Debug for CommitSubject
[src]

Formats the value using the given formatter.

impl Default for CommitSubject
[src]

Returns the "default value" for a type. Read more

impl Clone for CommitSubject
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for CommitSubject
[src]

impl Check for CommitSubject
[src]

The name of the check.

Run the check.