Trait TopicCheck

Source
pub trait TopicCheck:
    Debug
    + Send
    + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn check(
        &self,
        ctx: &CheckGitContext,
        topic: &Topic,
    ) -> Result<CheckResult, Box<dyn Error>>;
}
Expand description

Interface for checks which runs once for the entire branch, but with access to the content.

These checks are given the content of the entire topic against a base branch to check.

Required Methods§

Source

fn name(&self) -> &str

The name of the check.

Source

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

Run the check.

Implementors§

Source§

impl<T> TopicCheck for T
where T: ContentCheck,