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