PHP Messenger Detector for Eclipse

I have the PTI Eclipse plugin installed.

There is a possibility to change PDepend , CodeSniffer and UnitTest

When I try to right-click on any file, I have the Mess Detector option, but nothing happens when I click on it. And after searching for all the configuration parameters, I canโ€™t find any settings for PHPMD .

Does anyone know how to solve it?

+66
eclipse php unit-testing phpmd
Feb 05 '13 at 10:32
source share
2 answers

An old question, but since it still seems interesting in it ... I just installed the PTI plugin and did not mention PHPMD, so I wonder where you get the clutter detection menu item from?

For me, virtually nothing of the PTI works with Eclipse Kepler SR2. No matter what I try, nothing happens.

I would recommend MakeGood for you to run PHPUnit tests in Eclipse and set up Jenkins (including PHPMD) for your project, it takes a little time to set up, but once it works, it's just great: Template for Jenkins Jobs for PHP projects

+1
Jun 27 '14 at 20:31 on
source share

When PHPMD starts, it first looks for the default PHP executable that must exist, and this is not installed in the "PHP Tools", but in the "PHP":

 Window > Preferences > PHP > PHP Executables > (choose one) > [SET DEFAULT] 

But if you did not, you would get an error.

At this point, PHPMD starts and places its output in the PHPMD view (not in the Console view), which is usually displayed at the bottom. If it does not appear at all, it can be closed or ignored. So:

 Window > Show View > PHP Tools (Others?) > PHPMD 

Another thing is that PHPMD does not detect anything (the view appears, but it is empty). In this case, you can view the console view to see what happened. Otherwise, you can try and modify the phpmd.php script that PTI runs to register what it was doing (for example, you could wrap the main procedure in try / catch), either in stdout, or by opening a temporary file where - anywhere on your system.

-one
Aug 29 '15 at 9:44
source share



All Articles