You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating System / Distribution & Version: Debian 10
Current Behavior
I use --exclude option and the execution ignore it. The path to source and the path to exclude are absolute. If the exclude path is relative the behavior is right.
Expected Behavior
The file in the exclude path must be ignored.
Steps To Reproduce:
Create a file with any violation.
Execute phpmd with the violated rule against the file (or the path of the file) with the option --exclude in absolute path.
Enjoy!
# Doesn't Work
vendor/bin/phpmd /var/www/html2/tests/../testsDir/src/File.php ansi unusedcode --exclude "/var/www/html2/tests/../testsDir/src/File.php"
FILE: /var/www/html2/testsDir/src/File.php
------------------------------------------
21 | VIOLATION | Avoid unused local variables such as '$myVariable'.
Found 1 violation and 0 errors in 109ms
# Works
vendor/bin/phpmd /var/www/html2/tests/../testsDir/src/File.php ansi unusedcode --exclude "testsDir/src/File.php"
Found 0 violations and 0 errors in 53ms
No mess detected
Checks before submitting
[X ] Be sure that there isn't already an issue about this. See: Issues list
[X ] Be sure that there isn't already a pull request about this. See: Pull requests
[ X] I have added every step to reproduce the bug.
[X ] If possible I added relevant code examples.
[ X] This issue is about 1 bug and nothing more.
[ X] The issue has a descriptive title. For example: "JSON rendering failed on Windows for filenames with space".
The text was updated successfully, but these errors were encountered:
Current Behavior
I use --exclude option and the execution ignore it. The path to source and the path to exclude are absolute. If the exclude path is relative the behavior is right.
Expected Behavior
The file in the exclude path must be ignored.
Steps To Reproduce:
Checks before submitting
The text was updated successfully, but these errors were encountered: