-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the count property optional on line node for clover parser #509
Conversation
Make the count property optional on line node for clover parser This pull request introduces an optional
This comment was generated by an experimental AI tool (winner of the 2024 Codacy Hackathon 'People's Choice' and 'Most Valuable' awards). |
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferences🚀 Don’t miss a bit, follow what’s new on Codacy. Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more |
804233d
to
f27ba39
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you are confident on the change, feel free to move forward, but would check the mentioned PR and if we want to make this change.
Also, is there any ticket you can link to the PR for future reference on why we want to make the change?
.circleci/config.yml
Outdated
@@ -248,13 +248,16 @@ workflows: | |||
export PATH=$HOME/.musl/x86_64-linux-musl-native/bin:$PATH | |||
sbt "assembly;nativeImage" | |||
mkdir -p ~/workdir/tmp-artifacts | |||
ls target |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are those left here on purpose?
@@ -71,7 +71,8 @@ object CloverParser extends CoverageParser with XmlReportParser { | |||
fileLineTags.foldLeft[Either[String, Map[Int, Int]]](Right(Map.empty[Int, Int])) { | |||
case (left: Left[_, _], _) => left | |||
|
|||
case (Right(lines), line) if (line \@ "type") == "stmt" || (line \@ "type") == "cond" => | |||
case (Right(lines), line) | |||
if ((line \@ "type") == "stmt" || (line \@ "type") == "cond") && (line \@ "count").nonEmpty => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So you only want to consider lines that have count defined? Seems a bit weird that there is an or to check for cond, but then you added that check as well 🤔
Seems that if the intention is not to count me, that we should revert the https://github.com/codacy/codacy-coverage-reporter/pull/420/files which seems that was added to count those lines?
794dd69
to
c6c01f9
Compare
bac3373
to
8c3f4fe
Compare
8c3f4fe
to
f949f58
Compare
f1dd29e
to
fdee928
Compare
fdee928
to
af29ed5
Compare
No description provided.