Details
Description
"Sensors" run the tools (PMD/PHPCodeSniffer) to analyse the code.
"RulesRepository" are able to export a configuration from the SONAR format to the Tools configuration format.
The "RulesRepository" import/export functions are useless today, because the "Sensor" are not using them.
The "Sensor" should import the rules as a config file, to not parse all rules during the source analysis:
- it will reduce the processing time because it ignores the disabled rules
- it will reduce the XML output, so it will reduce the parsing time of this XML
The rules are filtered during the "xml parsing" time, by checking if the rule is enabled or disabled n the DB.
To be able to do it for PHPCodeSniffer, please: