Drupal sonarqube results are not Drupal compatible

Two that Kevin mentioned are a good start. Citing them here by rule:

  • php:S100 - This rule is correct for class method names. Function names not part of a class should follow the regex: ^[a-z][a-z0-9_]$ (link)
  • php:S1781 - Drupal’s coding standards invert this rule. TRUE, FALSE and NULL are correct. (link)