Trait git_checks::BranchCheck
source · pub trait BranchCheck: Send + Sync {
fn name(&self) -> &str;
fn check(
&self,
ctx: &CheckGitContext,
commit: &CommitId
) -> Result<CheckResult>;
}
Expand description
Interface for checks which runs once for the entire branch.
This is intended for checks which do not need to check the content, but instead, look at metadata such as the author or the topology of the branch.
Required Methods§
sourcefn check(&self, ctx: &CheckGitContext, commit: &CommitId) -> Result<CheckResult>
fn check(&self, ctx: &CheckGitContext, commit: &CommitId) -> Result<CheckResult>
Run the check.