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.
- Host: GitHub
- URL: https://github.com/mmicu/merge-cppcheck-reports
- Owner: mmicu
- License: mit
- Created: 2018-03-06T16:31:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-13T09:33:31.000Z (about 8 years ago)
- Last Synced: 2024-11-01T05:32:48.617Z (over 1 year ago)
- Topics: cppcheck
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 ...
```