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
[src]
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
[src]
Returns the "default value" for a type. Read more
impl ContentCheck for InvalidPaths
[src]
fn name(&self) -> &str
[src]
The name of the check.
fn check(&self, _: &CheckGitContext, content: &Content) -> Result<CheckResult>
[src]
Run the check.