Add more tools to PHPQA
$ php vendor/bin/phpqa-extensions.php --tools
List of available tools
=======================
--------------------------- -------- --------------------------- -----------
Name CLI Composer Installed
--------------------------- -------- --------------------------- -----------
PhpAssumptions phpa rskuipers/php-assumptions No
PHP Magic Number Detector phpmnd povils/phpmnd No
--------------------------- -------- --------------------------- -----------
$ php vendor/bin/phpqa-extensions.php --add phpmnd
or
$ php vendor/bin/phpqa-extensions.php --add "PHP Magic Number Detector"
or
$ php vendor/bin/phpqa-extensions.php --add povils/phpmnd
Several tools can be add in one times:
$ php vendor/bin/phpqa-extensions.php --add phpmnd --add phpa
| Option name | Default | Tool | Description |
|---|---|---|---|
| phpmnd.ignore-numbers | null | PHP Magic Number Detector | List (comma separate) of number to ignore (typically 0,1,2) |
| phpmnd.ignore-funcs | null | PHP Magic Number Detector | List (comma separate) of function to ignore |
| phpmnd.ignore-strings | null | PHP Magic Number Detector | List (comma separate) of strings value to ignore |
| phpmnd.strings | false |
PHP Magic Number Detector | Activate the strings literal analysis |
If you found a nice tool that you want to added, open a issue on GitHub.
You can also create Pull Request of a new tool.