SonarQube component_tree网址中的语言过滤器

时间:2017-07-04 07:34:38

标签: sonarqube sonarqube-api

api api/measures/component_tree根据提供的输入过滤器给出组件列表。是否有任何参数来提供语言,以便返回的列表只包含该语言的组件?

1 个答案:

答案 0 :(得分:0)

不,目前您无法过滤语言。

你可以这样做:

  1. 使用api/measures/component_tree
  2. 查找所有可能相关的组件
  3. 使用api/components/show获取每种
  4. 的语言
  5. 仅使用1中包含的组件,并在2中使用所需的语言。