Registry / devops / cppcheck-codequality

cppcheck-codequality

JSON →
library1.6.0pypypi✓ verified 85d ago

Convert a CppCheck XML report to a GitLab-compatible Code Quality JSON report. Version 1.6.0 supports Python 3.7 to 3.14. Releases are sporadic.

pip install cppcheck-codequality
INSTALL
IMPORT
SIG · CPPCHECK-CODEQUALI
C
cppcheck-codequality
devopspythonv1.6.0
Install
1.5s avg
Import
—
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v1.6.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.9MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

convert_file
✓ from cppcheck_codequality import convert_file
✗ from cppcheck_codequality import convert

Read a CppCheck XML report file, convert to GitLab Code Quality JSON, and write to file.

import subprocess import cppcheck_codequality # Run cppcheck and produce XML output with open("cppcheck_report.xml", "r") as f: report_xml = f.read() # Convert to Code Quality JSON json_output = cppcheck_codequality.convert(report_xml) with open("gl-code-quality-report.json", "w") as f: f.write(json_output)
cppcheck-codequality --version
Debug
Known issues
gotchaThe `convert` function expects a **string** containing XML, not a file path. Passing a file path will raise an error.
fix
Read the XML file contents into a string first using `open().read()`.
affects: all
gotchaThe library output is a JSON string, not a Python dict. If you need to manipulate the report further, parse it with `json.loads(json_output)`.
fix
Use `json.loads(convert(xml_str))` to get a Python dict.
affects: all
deprecatedSupport for Python 3.7 and 3.8 may be dropped in future releases. The current version requires Python >=3.7, <3.15.
fix
Upgrade to Python 3.9+ to ensure future compatibility.
affects: 1.6.0
Upgrade
Version history
1.6.0latest on PyPI · released Jan 16, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
8
OpenAI (training)
2
Bingbot
1
Resources
cppcheck-codequality — pip install cppcheck-codequality · libregistry