Struct git_checks::checks::InvalidPaths
[−]
[src]
pub struct InvalidPaths { /* fields omitted */ }
A check which denies commits which adds files containing special characters in their paths.
Methods
impl InvalidPaths
[src]
fn new<S: ToString>(chars: S) -> Self
Create a check which rejects paths which contain invalid characters.
In addition to whitespace and non-ASCII characters, the characters given here are also disallowed.
Trait Implementations
impl Debug for InvalidPaths
[src]
impl Default for InvalidPaths
[src]
fn default() -> InvalidPaths
Returns the "default value" for a type. Read more
impl Check for InvalidPaths
[src]
fn name(&self) -> &str
The name of the check.
fn check(&self, _: &CheckGitContext, commit: &Commit) -> Result<CheckResult>
Run the check.