--
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/qml094rxwjA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/a0a25331-9c30-4ec9-8c27-cb59b48ad9c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On 04 Nov 2015, at 09:53, Teryk Bellahsene <teryk.be...@sonarsource.com> wrote:
Hi Michael,The sourceFileKey won't be added in 5.2. It will be added in 5.3. Feel free to follow the corresponding ticket.
In SonarQube 5.2, you now have to:
- call api/components/search providing your component key to the 'q' parameter and choosing the appropriate qualifiers to filter by component qualifier (project, file, directory etc.). Please look at the documentation for more information
- no 2nd step, there should be only one component
- call api/tests/list with the source file id and the source line number. That's what you had to do before. There's no straightforward way to get all lines of the file. What's your use case?
See the picture showing the line number was needed in 4.5.6
<image.png>
HTH,
On 04 Nov 2015, at 10:11, Teryk Bellahsene <teryk.be...@sonarsource.com> wrote:
Sorry, but I doubt you just had to do one call to api/tests/show providing the source file key. For api/coverage/show you had to put a test file key. In that case, just use the 5.2 api/tests/list with you test file key.
<image.png>
HTH,
On 04 Nov 2015, at 10:55, Teryk Bellahsene <teryk.be...@sonarsource.com> wrote:/sources/lines
On 04 Nov 2015, at 11:10, Teryk Bellahsene <teryk.be...@sonarsource.com> wrote:
Teryk Bellahsene | SonarSource