Closed legovaer closed 9 years ago
The key error there is:
16:42:44.487 INFO - PHP Fatal error: Uncaught exception 'PHP_CodeSniffer_Exception' with message 'Referenced sniff "Drupal.Semantics.Br.XHTMLBr" does not exist' in /var/lib/jenkins/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer.php:847
You will either need to add that sniff to the SonarQube quality profile for PHP/Drupal, or remove it from the sniffs performed on the Drupal codebase... I've been trying to find a more automated way to add all relevant sniffs correctly, but it's really hard.
With SonarQube 4.x, I think it has a different mechanism for PHP sniffs, so this may be resolved when #2 is completed.
@geerlingguy :+1: one question with which version of SonarQube you have implemented this?
have you tried the same with newer version of SonarQube (4.x or 5.0) ?
Please reply as i am working on the same and its not working for me .
Thanks in advance.
@abhijeetka - I originally started this project with SonarQube 4.x, but found that 4.x's PHP analysis didn't actually work with PHPCS at all, only with internal SonarQube rules. That's why I've pinned this project on 3.x for now.
And AFAICT, there's no PHP standards available for 5.x yet :(
@greenlingguy thanks for the information. Yes PHP standards are not available for 5.x :(
Started by user anonymous Building in workspace /var/lib/jenkins/jobs/Drupal 7/workspace No JDK named ‘(Inherit From Job)’ found No JDK named ‘(Inherit From Job)’ found Cloning the remote Git repository Cloning repository http://git.drupal.org/project/drupal.git