mediawiki/minus-x

Removes executable bit from files that shouldn't be executable

0.1.0 2017-09-12 02:25 UTC

README

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 application/x-executable or application/x-sharedlib, or start with a shebang.

It can be installed via composer:

composer require mediawiki/minus-x --dev

Usage:

minus-x.php check .

And to automatically fix errors:

minus-x.php fix .

If you need to whitelist a specific file, create a .minus-x.json in the repository root:

{
	"ignore": [
		"./bin/executable"
	]
}

MinusX is licensed under the terms of the GPL, v3 or later. See COPYING for more details.