[][src]Trait git_checks::TopicCheck

pub trait TopicCheck: Send + Sync {
    fn name(&self) -> &str;
fn check(&self, ctx: &CheckGitContext, topic: &Topic) -> Result<CheckResult>; }

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

fn name(&self) -> &str

The name of the check.

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

Run the check.

Loading content...

Implementors

impl TopicCheck for BadCommits[src]

impl TopicCheck for CheckWhitespace[src]

impl<T> TopicCheck for T where
    T: ContentCheck
[src]

Loading content...