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<E: ToString>(extensions: &[E]) -> Self
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 Check for CheckExecutablePermissions
[src]
fn name(&self) -> &str
The name of the check.
fn check(&self, ctx: &CheckGitContext, commit: &Commit) -> Result<CheckResult>
Run the check.