wapmorgan / PhpDeprecationDetector

Analyzer of PHP code to search issues with deprecated functionality in newer interpreter versions.
http://wapmorgan.github.io/PhpDeprecationDetector/
BSD 3-Clause "New" or "Revised" License
364 stars 37 forks source link

Exclude single files? #58

Closed voku closed 2 years ago

voku commented 3 years ago

Hi, I see some invalid errors but the problem is I can't exclude the errors, without excluding the full directory e.g. /Framework/thirdparty/composer/php-mime-mail-parser/php-mime-mail-parser/mailparse-stubs.php, in the php-mime-mail-parser directory there is the full thirdparty project and I don't want to exclude it completely.

- PHP 5.5 (3) - your version is greater or equal
+--------------------------------------------------------------------------------+---------+----------------------------------------------+
| File:Line                                                                      | Type    | Issue                                        |
+--------------------------------------------------------------------------------+---------+----------------------------------------------+
| /Framework/thirdparty/composer/symfony/var-dumper/Caster/ResourceCaster.php:73 | removed | Function mysql_get_host_info() is removed.   |
| /Framework/thirdparty/composer/symfony/var-dumper/Caster/ResourceCaster.php:74 | removed | Function mysql_get_proto_info() is removed.  |
| /Framework/thirdparty/composer/symfony/var-dumper/Caster/ResourceCaster.php:75 | removed | Function mysql_get_server_info() is removed. |
+--------------------------------------------------------------------------------+---------+----------------------------------------------+

- PHP 7.0 (2) - your version is greater or equal
+--------------------------------------------------------------------------------------------------+-----------+-----------------------------------------------------------------------------+
| File:Line                                                                                        | Type      | Issue                                                                       |
+--------------------------------------------------------------------------------------------------+-----------+-----------------------------------------------------------------------------+
| /Framework/thirdparty/composer/php-mime-mail-parser/php-mime-mail-parser/mailparse-stubs.php:237 | changed   | Deprecated feature mimemessage:mimemessage (@php4_constructors) is changed. |
|                                                                                                  |           | You should use __construct() method instead of "mimemessage"                |
| /Framework/thirdparty/composer/respect/validation/library/Rules/Numeric.php:14                   | violation | Identifier Numeric is reserved by PHP core.                                 |
+--------------------------------------------------------------------------------------------------+-----------+-----------------------------------------------------------------------------+

- PHP 7.2 (2) - your version is greater or equal
+---------------------------------------------------------------------------------------------------+---------+----------------------------------------+
| File:Line                                                                                         | Type    | Issue                                  |
+---------------------------------------------------------------------------------------------------+---------+----------------------------------------+
| /Framework/thirdparty/composer/zetacomponents/graph/docs/tutorial/tutorial_dataset_numeric.php:14 | removed | Function create_function() is removed. |
| /Framework/thirdparty/composer/zetacomponents/graph/src/driver/svg.php:619                        | removed | Function create_function() is removed. |
+---------------------------------------------------------------------------------------------------+---------+----------------------------------------+
wapmorgan commented 3 years ago

You can exclude single files like folders: ./phpdd --exclude mailparse-stubs.php,Numeric.php ./