executable_bit
Assert every file in scope either has the +x bit set (require: true) or does not (require: false).
No fix op — chmod auto-apply is deferred.
Options
Section titled “Options”| Option | Type | Required | Default | Description |
|---|---|---|---|---|
require | boolean | yes | true → +x must be set; false → +x must NOT be set. |
Plus the common paths, level, id, and when fields. This table is generated from the JSON Schema; option types and defaults are authoritative.
Example
Section titled “Example”A docs file that is unexpectedly executable
Section titled “A docs file that is unexpectedly executable”The rule fires on this repository:
README.mddocs/docs/generate.sh (executable)With this .alint.yml:
version: 1rules: - id: docs-not-exec kind: executable_bit paths: "docs/**" level: error require: falseDocs files that are not executable
Section titled “Docs files that are not executable”This repository is compliant:
README.mddocs/docs/intro.mdWith this .alint.yml:
version: 1rules: - id: docs-not-exec kind: executable_bit paths: "docs/**" level: error require: false