diff --git a/README.md b/README.md index 6b99cb3..ba3d51a 100644 --- a/README.md +++ b/README.md @@ -1,37 +1,37 @@ MinusX ====== MinusX is a utility that finds files that shouldn't have a [UNIX executable mode](https://en.wikipedia.org/wiki/Modes_(Unix)). 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](https://en.wikipedia.org/wiki/Shebang_(Unix)). It can be installed via composer: `composer require mediawiki/minus-x --dev` Usage: -`minus-x.php check .` +`minus-x check .` And to automatically fix errors: -`minus-x.php fix .` +`minus-x 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. diff --git a/bin/minus-x.php b/bin/minus-x similarity index 100% rename from bin/minus-x.php rename to bin/minus-x diff --git a/composer.json b/composer.json index f5e408f..47362b2 100644 --- a/composer.json +++ b/composer.json @@ -1,36 +1,36 @@ { "name": "mediawiki/minus-x", "description": "Removes executable bit from files that shouldn't be executable", "license": "GPL-3.0+", "homepage": "https://www.mediawiki.org/wiki/MinusX", "authors": [ { "name": "Kunal Mehta", "email": "legoktm@member.fsf.org" } ], "require": { "php": ">=5.5.9", "symfony/console": "3.3.5" }, "require-dev": { "jakub-onderka/php-parallel-lint": "0.9.2", "jakub-onderka/php-console-highlighter": "0.3.2", "mediawiki/mediawiki-codesniffer": "0.12.0" }, "scripts": { "test": [ - "parallel-lint . --exclude vendor", + "parallel-lint . bin/minus-x --exclude vendor", "phpcs -sp" ], "fix": "phpcbf" }, "autoload": { "psr-4": { "MediaWiki\\MinusX\\": "src/" } }, "bin": [ - "bin/minus-x.php" + "bin/minus-x" ] }