pub struct CommitSubject { /* private fields */ }
Expand description

Check commit message subjects for invalid patterns.

Implementations§

Checks commit message subjects for invalid patterns

Patterns which are checked for:

  • overly long or short summary lines;
  • work-in-progress messages;
  • fixup! and squash! messages; and
  • custom prefixes.

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.

Check for tolerated commit subject prefixes.

The specified prefix patterns will be tolerated regardless of any configured allowed or disallowed prefixes.

Check for required commit prefixes.

The specified prefixes will be the only allowed prefixes on commit message subjects that do not match a tolerated pattern.

Check for disallowed commit prefixes.

The specified prefixes will be rejected on commit message subjects that do not also match a tolerated pattern.

Trait Implementations§

The name of the check.
Run the check.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.