Struct git_checks::checks::CheckEndOfLine
[−]
[src]
pub struct CheckEndOfLine;
Check for files which lack an end-of-line at the end of the file.
Methods
impl CheckEndOfLine
[src]
fn new() -> Self
Create a new check to check for end-of-lines at the end of files.
Trait Implementations
impl Debug for CheckEndOfLine
[src]
impl Default for CheckEndOfLine
[src]
fn default() -> CheckEndOfLine
Returns the "default value" for a type. Read more
impl Clone for CheckEndOfLine
[src]
fn clone(&self) -> CheckEndOfLine
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 CheckEndOfLine
[src]
impl Check for CheckEndOfLine
[src]
fn name(&self) -> &str
The name of the check.
fn check(&self, _: &CheckGitContext, commit: &Commit) -> Result<CheckResult>
Run the check.