问题
I would like to use SonarQube 6.3.1 to analyze the Java and Kotlin code of an Android project. Therefore, I installed the Android Lint plugin besides the preinstalled SonarJava aka. Sonar way plugin. Both show up in the Java language dropdown in the Administration section of the project as shown in the screenshot.
- How can I apply multiple profiles at the same time?
- Where can I find other profiles suitable for Java/Kotlin/Android projects?
Related posts
- Sonarqube: use multiple custom quality profiles for a single multilanguage project...?
回答1:
You apply both profiles by creating a third profile that contains all the rules in each of your source profiles.
The easiest way to accomplish that is to
- Go to Quality Profiles and create a new profile
- Now in the list of profiles, click on the rule count for one of your source profiles. This takes you to the list of rules active in that profile
- Use the Bulk Change > Activate In... option to turn those rules on in your new profile
- Return to step 2 with the next source profile in your list.
来源:https://stackoverflow.com/questions/44521481/sonarqube-how-to-apply-multiple-quality-profiles-to-one-project