Skip to content
Removes executable bit from files that shouldn't be executable. Mirror from https://gerrit.wikimedia.org/g/mediawiki/tools/minus-x - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
src
.gitattributes
.gitignore
.gitreview
.phpcs.xml
COPYING
HISTORY.md
README.md
composer.json

README.md

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 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 check .

And to automatically fix errors:

minus-x fix .

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

{
	"ignore": [
		"./bin/executable"
	],
	"ignoreDirectories": [
		"./extensions"
	]
}

The directories .git, vendor, and node_modules are always ignored.

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

You can’t perform that action at this time.