简体   繁体   中英

Language filter in SonarQube component_tree url

The api api/measures/component_tree gives the list of components based on the provided input filters. Is there any parameter to provide the language so that the returned list only contains components of that language?

No, currently you cannot filter on language.

You could do it like this:

  1. Find all potentially relevant components with api/measures/component_tree
  2. Use api/components/show to get the language of each of those
  3. Only take components, that are included in 1. and have your desired language in 2.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM