I have the following setting in my config for cppcheck to warn me if old API is used.
<function name="strlen">
<warn severity="error"> DONT USE </warn>
<arg nr="1"/>
</function>
When I run cppcheck, then I have 'error' in ourput as it should be
dummy.cc:3:5: error: DONT USE [strncpyCalled] strncpy(dest, src, sizeof(dest));
But the result of the call is SUCCESS ( if I do 'echo $?'). In my CI the job is green as result.
What is the setting to make cppcheck to return 1 after the run in this case ?
Thanks!