Hi Team,
I want to scan the Drupal 8 PSR-4 PHP standard project. Is sonarqube capable to scan PHP PSR-4 standard or not? If yes, how to upgrade PSR-2 to PSR-4? Please advise.
There is a rule in SonarQube that will create a Code Smell if namespaces do not conform with PSR-4 (see https://rules.sonarsource.com/php/RSPEC-4833). This rule is active in the built-in “Drupal” quality profile and can be added to custom Quality Profiles if needed.