executable_has_shebang
Every file with +x set must begin with #!. Catches plain text files accidentally marked executable.
Options
Section titled “Options”This rule takes no kind-specific options.
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”An executable script missing its shebang
Section titled “An executable script missing its shebang”The rule fires on this repository:
README.mdscripts/scripts/run (executable)With this .alint.yml:
version: 1rules: - id: exec-shebang kind: executable_has_shebang paths: "scripts/**" level: errorAn executable script that has its shebang
Section titled “An executable script that has its shebang”This repository is compliant:
README.mdscripts/scripts/hello.sh (executable)With this .alint.yml:
version: 1rules: - id: exec-shebang kind: executable_has_shebang paths: "scripts/**" level: error