Skip to content

executable_has_shebang

Every file with +x set must begin with #!. Catches plain text files accidentally marked executable.

- id: executables-have-shebangs
kind: executable_has_shebang
paths: "**"
level: error

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.