[][src]Trait git_checks_core::impl_prelude::Check

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

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, Box<dyn Error>>

Run the check.

Loading content...

Implementors

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

Loading content...