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]
impl CheckExecutablePermissionspub fn new<I>(extensions: I) -> Self where
I: IntoIterator,
I::Item: ToString, [src]
pub fn new<I>(extensions: I) -> Self where
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 Debug for CheckExecutablePermissionsfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl ContentCheck for CheckExecutablePermissions[src]
impl ContentCheck for CheckExecutablePermissionsfn name(&self) -> &str[src]
fn name(&self) -> &strThe name of the check.
fn check(&self, ctx: &CheckGitContext, content: &Content) -> Result<CheckResult>[src]
fn check(&self, ctx: &CheckGitContext, content: &Content) -> Result<CheckResult>Run the check.
Auto Trait Implementations
impl Send for CheckExecutablePermissions
impl Send for CheckExecutablePermissionsimpl Sync for CheckExecutablePermissions
impl Sync for CheckExecutablePermissions