Struct git_checks::checks::CheckExecutablePermissions
[−]
[src]
pub struct CheckExecutablePermissions { /* fields omitted */ }
Checks whether a file's executable permissions matches its contents.
Files which look executable but are not marked as such or vice versa are rejected.
Methods
impl CheckExecutablePermissions
[src]
fn new<I>(extensions: I) -> Self where
I: IntoIterator,
I::Item: ToString,
[src]
I: IntoIterator,
I::Item: ToString,
Create a new check which checks for executable permissions.
Files which end in the given extension are assumed to be executable.
Trait Implementations
impl Debug for CheckExecutablePermissions
[src]
impl ContentCheck for CheckExecutablePermissions
[src]
fn name(&self) -> &str
[src]
The name of the check.
fn check(&self, ctx: &CheckGitContext, content: &Content) -> Result<CheckResult>
[src]
Run the check.