I have projects that do not use the required versions of PHPUnit, PHP Depend, etc. What can I do?
If you are able to have several versions of code analysis tool on the same machine, just make sure that the correct one will be used.
You also have to make sure that the output file log is compatible with the one specified by the version of the tool you want to use.
I have created my own PHP_CodeSniffer Standard or PHPMD ruleset. Can I use it with the Sonar PHP plugin?
Yes, but with some extra work. Two possible cases :
In this case you will have to Extend the PHP Coding Rules
How do I prevent external tools from analyzing some source files?
Most of the time, using the sonar.exclusions property will be enough to exclude files from being reported by Sonar. However, there might be some cases where one really wants to exclude files from being analyzed by an external tool (may it be PHP_CodeSniffer, PHPMD or PHP Depend):
When specifying exclusions directly for each tool, you should also consider to set the 'sonar.exclusions' property accordingly. Otherwise, you may have files with incomplete analysis.
How do I disable unit test & coverage reporting?
The easiest way to disable unit test reporting is to use the following standard Sonar property: