Struct git_checks::checks::CheckWhitespace
[−]
[src]
pub struct CheckWhitespace;
Checks for bad whitespace using Git's built-in checks. This is attribute-driven, so any
gitattributes(5)
files may be used to suppress spirious errors from this check.
Methods
impl CheckWhitespace
[src]
fn new() -> Self
Create a new check to check whitespace.
Trait Implementations
impl Debug for CheckWhitespace
[src]
impl Default for CheckWhitespace
[src]
fn default() -> CheckWhitespace
Returns the "default value" for a type. Read more
impl Clone for CheckWhitespace
[src]
fn clone(&self) -> CheckWhitespace
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for CheckWhitespace
[src]
impl Check for CheckWhitespace
[src]
fn name(&self) -> &str
The name of the check.
fn check(&self, ctx: &CheckGitContext, commit: &Commit) -> Result<CheckResult>
Run the check.