vralfy / phpcsmd

Netbeans plugin to report code measurements generated by phpcs, phpmd, phpcpd and pdepend as Tasks and Annotations
27 stars 6 forks source link

PHP CPD not working in Netbeans 7.4 and Windows 8.1 64-bit #35

Closed marcovtwout closed 10 years ago

marcovtwout commented 10 years ago

I am having trouble getting the PHP CPD test results to be properly shown. The test seems to execute fine, but the results are not shown in the ScanReport screen (empty column under phpcpd) or the file itself.

Platform: Windows 8.1 IDE: Netbeans 7.4 Relevant PHPCSMD settings:

Relevant lines from the phpcsdm debug log:


php-cpd command (folder scan) C:\wamp\bin\php\php5.4.12\phpcpd.bat --min-lines 5 --min-tokens 70 C:\Users\Marco\AppData\Local\Temp\phpcsmd-phpcpdDistractor9109165492856440257.php S:/www/assessmenttool_nl/inuse/trunk/core/controllers Output phpcpd 2.0.0 by Sebastian Bergmann. Found 1 exact clones with 38 duplicated lines in 2 files:    ⊗S:\www\assessmenttool_nl\inuse\trunk\core\controllers\AssessmentDefinitionController.php:95-133 ⊗S:\www\assessmenttool_nl\inuse\trunk\core\controllers\QuickscanController.php:87-125 0.69% duplicated lines out of 5489 total lines of code. Time: 300 ms, Memory: 8.75Mb


As you can see, results are being found. I verified this by running phpcpd on the command line.

vralfy commented 10 years ago

I will check that as soon as possible

vralfy commented 10 years ago

damn whitespaces :D

marcovtwout commented 10 years ago

Nice :) When can I get the updated version and can I get it through the NetBeans plugin manager?

vralfy commented 10 years ago

I will upload a new version as soon as possible. But you also have to wait until the guys from Netbeans have checked the new version. You can also checkout this repo and build phpcsmd on your own, if you do not want to wait :D