I use Cppcheck 2.3 in Ubuntu 18.04.
When I run Cppcheck without option --check-config and without option --error-exitcode on a project and I get errors, Cppcheck exits with exit code 0.
When I run Cppcheck without option --check-config and with option --error-exitcode=1 on a project and I get errors, Cppcheck exits with exit code 1.
When I run Cppcheck with option --check-config and without option --error-exitcode on a project and I get errors, Cppcheck exits with exit code 0.
So far, this is as documented and as expected. However:
When I run Cppcheck with option --check-config and with option --error-exitcode=1 on a project and I get errors, Cppcheck exits with exit code 0.
How can I use option --check-config and get Cppcheck to exit with exit code different from 0 when Cppcheck generates errors?
hmm I guess you should get exit code 1 then.. I have created https://trac.cppcheck.net/ticket/10224
Log in to post a comment.
I use Cppcheck 2.3 in Ubuntu 18.04.
When I run Cppcheck without option --check-config and without option --error-exitcode on a project and I get errors, Cppcheck exits with exit code 0.
When I run Cppcheck without option --check-config and with option --error-exitcode=1 on a project and I get errors, Cppcheck exits with exit code 1.
When I run Cppcheck with option --check-config and without option --error-exitcode on a project and I get errors, Cppcheck exits with exit code 0.
So far, this is as documented and as expected. However:
When I run Cppcheck with option --check-config and with option --error-exitcode=1 on a project and I get errors, Cppcheck exits with exit code 0.
How can I use option --check-config and get Cppcheck to exit with exit code different from 0 when Cppcheck generates errors?
hmm I guess you should get exit code 1 then.. I have created https://trac.cppcheck.net/ticket/10224