Hi Shubham,

the Code base of JaCoCo is maintained here: https://github.com/jacoco/jacoco 
<https://github.com/jacoco/jacoco>

https://github.com/SonarSource/sonar-java 
<https://github.com/SonarSource/sonar-java> is maintained by SonarSource.

>  am interested to know where is this logic written for flagging the code 
> lines as "Executable/Non-Executable Line”

Actually JaCoCo calculates this for you. Have a look e.g. at the XML report 
generated by JaCoCo. You will see the execution status of every single line. 
For example: https://www.jacoco.org/jacoco/trunk/coverage/jacoco.xml 
<https://www.jacoco.org/jacoco/trunk/coverage/jacoco.xml>

Regards,
-marc



We cannot answer questions about 
> On 1. Oct 2019, at 11:22, [email protected] wrote:
> 
> Hi Team,
> 
> We are trying to understand how the "Coverage on new code" is calculated in 
> the SonarQube along with Jacoco.
> 
> I have raised an issue earlier in the Jacoco Github 
> <https://github.com/jacoco/jacoco>: 
> https://github.com/jacoco/jacoco/issues/935 
> <https://github.com/jacoco/jacoco/issues/935> but didn't get much then 
> "marchof <https://github.com/marchof>" asked me to explore more from the 
> SonarQube side.
> 
> I then raised a question on https://community.sonarsource.com 
> <https://community.sonarsource.com/>: 
> https://community.sonarsource.com/t/code-coverage-for-the-current-build-versus-the-build-triggered-previous-minus-last-build/14047/10
>  
> <https://community.sonarsource.com/t/code-coverage-for-the-current-build-versus-the-build-triggered-previous-minus-last-build/14047/10>
> 
> In order to calculate the "Coverage on new code".
> 
> SonarQube does an SCM diff.
> Then it filters the non-executable lines, concept: Executable Lin 
> <https://docs.sonarqube.org/latest/extend/executable-lines/>es
> Then it calculates the line covered/ actual coverable lines.
> 
> I am interested to know where is this logic written for flagging the code 
> lines as "Executable/Non-Executable Line" is it in 
> https://github.com/SonarSource/sonar-java 
> <https://github.com/SonarSource/sonar-java>.
> 
> Also, is it written by "Jacoco Devs" or by the "SonarQube Devs"?
> 
> I want to bring that logic out of "SonarQube" and use it in some of my use 
> cases along with Jacoco.
> 
> Thanks,
> Shubham
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "JaCoCo and EclEmma Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/911523e3-43f7-4d39-a87a-9ca5affaea20%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jacoco/911523e3-43f7-4d39-a87a-9ca5affaea20%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/ECC365D9-211C-4745-A4CA-51ADFB28366C%40mountainminds.com.

Reply via email to