Menu

Missing rules

Brady Eric
2016-03-17
2016-04-11
  • Brady Eric

    Brady Eric - 2016-03-17

    Hi,
    I want to run a specific set of rules on different projects so I have a file containing rules that should not be applied.
    Are all rules listed with cppcheck.exe --errorlist the same that are enabled with --enable=all ?

    I am also using cppcheclipse, but in the preference file of the plugin I can enable some rules that are not in the list given by --errorlist, like bitwiseOnBoolean, bufferAccessOutOfBounds,bufferNotZeroTerminated,clarifyCondition,ConfigurationNotChecked,divideSizeof,duplicateBranch
    Are those rules missing from the --error-list or do I have a mismatch between versions of cppcheck and cppcheclipse?

    I am using cppcheck 1.6.8 on w7x86 and cppcheclipse 0.9.9 on eclipse 4.5.0

     

    Last edit: Brady Eric 2016-03-17
    • Alexander Mai

      Alexander Mai - 2016-04-11

      Note that in the outdated XML output format version 1 (which is unfortunately still cppcheck's default) the inconclusive errors are not shown.
      Use --errorlist --xml-version=2 for complete output.

       
  • Mr. X

    Mr. X - 2016-03-17

    cppcheck 1.68 is outdated, 1.72 is the latest version. But cppchecklipse 0.9.9 is from 2012, when cppcheck 1.57 was the latest version. If it contains its own instance of cppcheck, then mismatches between cppcheclipse and cppcheck 1.68 are very likely.

    I would recommend to update your copy of cppcheck and use the standalone version instead of the eclipse plugin.

     
  • Brady Eric

    Brady Eric - 2016-03-18

    Thanks for your answer, I have the standalone version of cppcheck, the cppcheclipse plugin does not conatin cppcheck.
    My work environment does not allow me to update software (easily), sadly I'm stuck with the versions mentionned in my first post.
    You mention that cppcheclipse 0.9.9 was for cppcheck 1.57, I think it is likely where my problem is, I will try to install matchin version on another computer if I can find one to pinpoint the issue.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.