Trait git_checks::Check

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

Interface for checks which run for each commit.

Required Methods§

The name of the check.

Run the check.

Implementors§