Trait git_checks::ContentCheck
[−]
[src]
pub trait ContentCheck: Send + Sync { fn name(&self) -> &str; fn check(
&self,
ctx: &CheckGitContext,
content: &Content
) -> Result<CheckResult>; }
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: &Content) -> Result<CheckResult>
Run the check.
Implementors
impl ContentCheck for Changelog
impl ContentCheck for CheckEndOfLine
impl ContentCheck for CheckExecutablePermissions
impl ContentCheck for CheckSize
impl ContentCheck for Formatting
impl ContentCheck for InvalidPaths
impl ContentCheck for InvalidUtf8
impl ContentCheck for LfsPointer
impl ContentCheck for RejectConflictPaths
impl ContentCheck for RejectSymlinks
impl ContentCheck for RestrictedPath