An open API service indexing awesome lists of open source software.

https://github.com/mmicu/merge-cppcheck-reports

Merge XML files that use the cppcheck xml format.
https://github.com/mmicu/merge-cppcheck-reports

cppcheck

Last synced: 3 months ago
JSON representation

Merge XML files that use the cppcheck xml format.

Awesome Lists containing this project

README

          

# merge-cppcheck-reports
This simple script merges XML files generated by [cppcheck](https://github.com/danmar/cppcheck).

## Usage
```
$ python merge_cppcheck_reports.py -h
usage: merge_cppcheck_reports.py [-h] [-r] file [file ...]

Merge cppcheck XML reports.

positional arguments:
file list of XML files

optional arguments:
-h, --help show this help message and exit
-r remove duplicates
```

## Example
Considering the following two examples (`examples/report_1.xml` and `examples/report_2.xml`, respectively):
```xml



Checking main.c ...



```
```xml



Checking main.c ...






```
The script produces the following two outputs (without options and using option `-r`, respectively):
```xml
$ python merge_cppcheck_reports.py examples/report_1.xml examples/report_2.xml



Checking main.c ...









```
```xml
$ python merge_cppcheck_reports.py examples/report_1.xml examples/report_2.xml -r



Checking main.c ...






```