Struct git_checks::checks::CheckExecutablePermissions
source · pub struct CheckExecutablePermissions { /* private fields */ }Expand description
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.
Implementations§
source§impl CheckExecutablePermissions
impl CheckExecutablePermissions
sourcepub fn new<I>(extensions: I) -> Selfwhere
I: IntoIterator,
I::Item: ToString,
pub fn new<I>(extensions: I) -> Selfwhere
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.