Drupal sonarqube results are not Drupal compatible

Hello,

In order to still provide a good out-of-the-box experience for users, we decided that the rules should automatically adapt to the convention of the context if it is known. This means that users who use a framework that has its own coding and formatting conventions will find an analysis in which the rules adhere to these conventions.
Specifically, the behavior of rules should adapt if we detect that the analyzed code is using the Drupal framework.

We’re currently in the process of specifying these changes, so suggestions about which rules to change to a context-based approach are welcome.
The rules php:S100 and php:S1781 are already added to the specification based on your suggestion.

We plan to implement the changes during the next development iteration of the PHP Analyzer.

Best,
Jonas