Skip to content

shebang_has_executable

Every file starting with #! must have +x set. Catches scripts that got their +x bit stripped by git add --chmod=-x, a tar round-trip, or a cp across filesystems.

- id: scripts-wired
kind: shebang_has_executable
paths: "ci/**/*.sh"
level: warning

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.