Skip to main content

Module executable_bit

Module executable_bit 

Source
Expand description

executable_bit — assert every file in scope either has the Unix +x bit set (require: true) or does not (require: false).

Common uses:

  • Force every script under scripts/ to be executable.
  • Force .md, .txt, .yaml to not be executable (a frequent accidental commit).

Windows has no true executable bit; on non-Unix platforms the rule is a no-op (never produces violations). Document this in the config so platform-specific behaviour isn’t a surprise.

Structs§

ExecutableBitRule

Functions§

build