SonarQube: How to apply multiple quality profiles to one project?

ⅰ亾dé卋堺 提交于 2019-12-10 17:35:44

问题


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

  1. Go to Quality Profiles and create a new profile
  2. 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
  3. Use the Bulk Change > Activate In... option to turn those rules on in your new profile
  4. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!