mediawiki / minus-x
Removes executable bit from files that shouldn't be executable
1.1.3
2024-05-04 16:06 UTC
Requires
- php: >=7.2.9
- symfony/console: ^3.3.5 || ^4 || ^5 || ^6 || ^7
Requires (Dev)
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 check .
And to automatically fix errors:
minus-x fix .
If you want to ignore a specific file or directory from being checked,
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.