Skip to content
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

Fix Jacoco parser to not throw error when no lines for source file #1473

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

marschattha
Copy link
Member

Some times the output from Jacoco parser can have missing line data, right now we error when that happens. This PR handles that scenario.

@marschattha marschattha requested a review from brynary February 4, 2025 19:54
Copy link
Contributor

qltysh bot commented Feb 4, 2025

1 new issue

Tool Category Rule Count
qlty Structure Deeply nested control flow (level = 5) 1

qlty successfully analyzed this pull request in 1m.

Comment on lines +57 to +58
for _x in (line_hits.len() as i64)..(line.nr - 1) {
line_hits.push(-1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deeply nested control flow (level = 5) [qlty:nested-control-flow]

Copy link
Contributor

qltysh bot commented Feb 4, 2025

Diff Coverage: The code coverage on the diff in this pull request is 100.0%.

Total Coverage: This PR will not change total coverage.

File Coverage Changes
Path File Coverage Δ Indirect
qlty-coverage/src/parser/jacoco.rs 0.1
🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

@marschattha marschattha merged commit 68097c9 into main Feb 4, 2025
8 checks passed
@marschattha marschattha deleted the ma/fix_jacoco_parser_to_allow_no_lines branch February 4, 2025 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants