diff cover json report don't contain the total lines' number
See original GitHub issueIs that any support that the json report contains the diff total lines’ number?
The total lines number is import for report display? Is it should be given?
Json report is generated in the below cmd:
diff-cover my_jacoco.xml --compare-branch origin/master --src-roots my_project/my_module/src/main/java --json-report my_diff_cover_report.json
The report contains total_num_lines
and violation_lines
and its line number but no line number as total_lines
.
{
"report_name": "XML",
"diff_name": "origin/master...HEAD, staged and unstaged changes",
"src_stats": {
"my_module/src/main/java/com/zsmallx/example/java_calculator/JCalculator.java": {
"percent_covered": 50.0,
"violation_lines": [
13
],
"violations": [
[
13,
null
]
]
}
},
"total_num_lines": 2,
"total_num_violations": 1,
"total_percent_covered": 50
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Count number of lines in a git repository - Stack Overflow
I am just pulling it up here so that it doesn't go unnoticed. The credit for this should go to @FRoZeN (and @ephemient)....
Read more >DeepDiff 4.0.7 documentation - Read the Docs
A DeepDiff object that has already calculated the difference of the 2 items. Supported data types. int, string, unicode, dictionary, list, tuple, set,...
Read more >istanbul-diff - npm
Uses jsondiffpatch to find & report diffs between two istanbul JSON code coverage summaries in the vein of coveralls.
Read more >JSON formatting with jq and CI/CD linting automation - GitLab
Learn how to filter in JSON data structures and interact with the REST API. Use the GitLab API to lint your CI/CD configuration...
Read more >CLOC -- Count Lines of Code
The inputs may be pairs of files, directories, or archives. Use --diff-alignment to generate a list showing which file pairs where compared. See...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ZSmallX
This is released. @kasium did the work im just the messenger https://pypi.org/project/diff-cover/5.3.0/
No support currently. But I would approve and release a pr that added that