[][src]Trait git_checks::Check

pub trait Check: Send + Sync {
    fn name(&self) -> &str;
fn check(
        &self,
        ctx: &CheckGitContext,
        commit: &Commit
    ) -> Result<CheckResult>; }

Interface for checks which run for each commit.

Required methods

fn name(&self) -> &str

The name of the check.

fn check(&self, ctx: &CheckGitContext, commit: &Commit) -> Result<CheckResult>

Run the check.

Loading content...

Implementors

impl Check for BadCommits[src]

impl Check for CheckWhitespace[src]

impl Check for CommitSubject[src]

impl Check for RejectMerges[src]

impl Check for RejectSeparateRoot[src]

impl Check for SubmoduleAvailable[src]

impl Check for SubmoduleRewind[src]

impl Check for SubmoduleWatch[src]

impl Check for ThirdParty[src]

impl Check for ValidName[src]

impl<T> Check for T where
    T: ContentCheck
[src]

Loading content...