I'm having trouble getting cppcheck to recognize and apply my custom XML rules file. I've followed the documentation and advice, but still, cppcheck doesn't seem to trigger any warnings based on my rules. I'm wondering if anyone else has encountered similar issues or has any insights into why cppcheck might not be accepting my XML rules file. Could there be any specific configurations or troubleshooting steps I should consider?
my command in my command line is:
cppcheck --rule-file=C:\job\testcppcheck\xmltest.xml file.cpp
with xml:
<?xml version="1.0" ?>
<codingRules>
<rule>
<pattern>variable</pattern>
<message>
<severity>error</severity>
<summary>This variable . . .</summary>
</message>
</rule>
</codingRules>