Why does cpplint not spot missing semicolons?

534 Views Asked by At

I have been using linters in NodeJS for a while eslint and have started using cpplint on my Arduino libraries in C++. It does not seem to pick up some fundamentals such as missing semicolons (but it does identify braces on the wrong line). It also doesn't seem to differentiate between spaces and tabs for indentation or badly indented code in the implementation file.

Coming from a NodeJS background, cpplint seems to be missing a lot of checks or am I completely missing the point?

1

There are 1 best solutions below

2
On

cpplint only checks code style based on Google C++ Style Guide. As long as I know, it won't check syntax error. If we look on cpplint.py implementation, we won't found any rule of regex govern about missing semicolons. And about indentation, as long as the whitespace width is even and not tabs, cpplint will pass it.