Sonarqube Capable to Scan PHP PSR-4 Standard?

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.

Please Ref
https://www.drupal.org/docs/develop/standards/psr-4-namespaces-and-autoloading-in-drupal-8

Thanks,
Sudhakar D

Hi Sudhakar,

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.

Cheers.

Brian