Trait Check

Source
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,