Example usage invocation appears incorrect
When I run python3 -m cppcheck-codequality --input-file=cppcheck_out.xml --output-file=cppcheck.json
I get:
/path/to/project/pyvenv/bin/python3: No module named cppcheck-codequality
Replacing it with python3 -m cppcheck_codequality --input-file=cppcheck_out.xml --output-file=cppcheck.json
(note the underscore to match the package name) I get:
/path/to/project/pyvenv/bin/python3: No module named cppcheck_codequality.__main__; 'cppcheck_codequality' is a package and cannot be directly executed
However, you correctly establish an entry point so the executable program exists in the bin
folder so the following invocation works fine: cppcheck-codequality --input-file=cppcheck_out.xml --output-file=cppcheck.json
Maybe I'm missing something here? If not, I suggest updating the README. I can send a patch if desired.
- Ubuntu 20.04
- Python 3.8.5
- pip 21.0.1
Edited by Viet The Nguyen