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

Interface for checks which run for each commit.

Required Methods§

source

fn name(&self) -> &str

The name of the check.

source

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

Run the check.

Implementors§

source§

impl<T> Check for T
where T: ContentCheck,