Menu

#3 Bug: custom parameter «--suppress="*:header.h"» suppresses the entire output

1.0
closed
nobody
2015-05-21
2015-05-19
No

Test project attached.

While running Cppcheck from command line in directory with sources, I get:

$ cppcheck --suppress="*:header.h" .
Checking main.cpp...
[main.cpp:6]: (error) Null pointer dereference

Adding «--suppress="*:header.h"» to the "Custom parameters" list suppresses all the output.

1 Attachments

Discussion

  • Gres

    Gres - 2015-05-19

    Hello!

    • Dont use quotes: --suppress=*:header.h
    • Specify filter that matches absolute file paths: --suppress=*:*/header.h or smth like this.
     
  • Alexey Zhikhartsev

    Thank you, that works perfectly!

    What do you think about an idea to have separate ignore lists for each of the projects?

     
  • Gres

    Gres - 2015-05-21

    I even started making it once (not only ignore list, but all settings), but then something distracted me and i switched to another project. So yeah, i'll make it sometime :)

     
  • Gres

    Gres - 2015-05-21
    • status: open --> closed
     

Log in to post a comment.