Enum mit_commit_message_lints::lints::Lint[][src]

pub enum Lint {
    DuplicatedTrailers,
    PivotalTrackerIdMissing,
    JiraIssueKeyMissing,
    GitHubIdMissing,
    SubjectNotSeparateFromBody,
    SubjectLongerThan72Characters,
    SubjectNotCapitalized,
    SubjectEndsWithPeriod,
    BodyWiderThan72Characters,
    NotConventionalCommit,
    NotEmojiLog,
}

The lints that are supported

Variants

DuplicatedTrailers
PivotalTrackerIdMissing
JiraIssueKeyMissing
GitHubIdMissing
SubjectNotSeparateFromBody
SubjectLongerThan72Characters
SubjectNotCapitalized
SubjectEndsWithPeriod
BodyWiderThan72Characters
NotConventionalCommit
NotEmojiLog

Implementations

impl Lint[src]

#[must_use]
pub fn name(self) -> &'static str
[src]

impl Lint[src]

pub fn iterator() -> impl Iterator<Item = Lint>[src]

#[must_use]
pub fn enabled_by_default(self) -> bool
[src]

#[must_use]
pub fn config_key(self) -> String
[src]

#[must_use]
pub fn lint(self, commit_message: &CommitMessage) -> Option<Problem>
[src]

pub fn from_names(names: Vec<&str>) -> Result<Vec<Lint>, Error>[src]

Try and convert a list of names into lints

Errors

If the lint does not exist

Trait Implementations

impl Clone for Lint[src]

impl Copy for Lint[src]

impl Debug for Lint[src]

impl Display for Lint[src]

impl Eq for Lint[src]

impl Hash for Lint[src]

impl Ord for Lint[src]

impl PartialEq<Lint> for Lint[src]

impl PartialOrd<Lint> for Lint[src]

impl StructuralEq for Lint[src]

impl StructuralPartialEq for Lint[src]

impl TryFrom<&'_ str> for Lint[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Lint

impl Send for Lint

impl Sync for Lint

impl Unpin for Lint

impl UnwindSafe for Lint

Blanket Implementations

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

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

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

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToCell for T where
    T: ToString
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.