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§
sourcefn check(&self, ctx: &CheckGitContext, commit: &Commit) -> Result<CheckResult>
fn check(&self, ctx: &CheckGitContext, commit: &Commit) -> Result<CheckResult>
Run the check.