Sublime Forum

Can SublimeLinter-cppcheck lint header files?

#1

I assume I must have something misconfigured, but I’m starting to use SublimeLinter-cppcheck to check C++ code. I can see it working on source files, so I know the basic mechanics are working. The problem is I get no linting at all of header files.

What I can tell from the console output is that when I lint cpp files, cppcheck generates messages about included headers (as expected), but SublimeLinter seems to ignore all messages except for the ones that pertain to the current file. Fair enough.

When I open the header files, though, I get no linting at all. From the console/command-line, I can tell that cppcheck produces no output when run on a header file. I’m using version 1.73 of cppcheck.

Header errors are generated by cppcheck but ignored by SublimeLinter when I’m editing a .cpp file, and they aren’t generated at all when I’m editing a .h file, and as a result, I never see linting on header files.

Is there a way to configure this to work?

0 Likes