Details
Description
Setting the sonar.phpcpd.excludes option does not work correctly – the generated phpcpd command line is missing a space between the "--exclude" switch and the associated parameter list. For example:
[INFO] Executing phpcpd with command 'phpcpd --min-lines 3 --min-tokens 5 --log-pmd /var/lib/hudson/jobs/VuFind/workspace/trunk/target/logs/php-cpd.xml --suffixes php,php3,php4,php5,phtml,inc --excludeweb/interface/compile web/sys/mobileesp /var/lib/hudson/jobs/VuFind/workspace/trunk'
(note the "-excludeweb..." where "-exclude web..." is expected).
Presumably this can be fixed with a fairly minor change to PhpCpdExecutor::getCommandLine().
Exclude Packages is not added to the result list of the command line, that make the plugin add the missing space between the modifier and the arguments