MinusX

MinusX is a utility that finds files that shouldn't have a UNIX executable mode.

Files that are marked as executable must either have a MIME type of  or , or start with a shebang.

It can be installed via composer:

Usage:

And to automatically fix errors:

If you need to whitelist a specific file, create a  in the repository root: