[][src]Trait git_checks_core::impl_prelude::ContentCheck

pub trait ContentCheck: Send + Sync {
    fn name(&self) -> &str;
fn check(
        &self,
        ctx: &CheckGitContext,
        content: &dyn Content
    ) -> Result<CheckResult, Box<dyn Error>>; }

Interface for checks which check the content of files.

These checks are not given any metadata, but only information about the content of a commit or topic.

Required methods

fn name(&self) -> &str

The name of the check.

fn check(
    &self,
    ctx: &CheckGitContext,
    content: &dyn Content
) -> Result<CheckResult, Box<dyn Error>>

Run the check.

Loading content...

Implementors

Loading content...