cpplint 的其他用法:

控制输出警告的级别【1=5】: cpplint.py –verbose=3 test.cpp
支持对hpp的检测: cpplint.py –extensions=hpp test.cpp
输出日志到文件: cpplint.py –output test.cpp 2>log.txt
使用filter 过滤某些可忽略的警告: cpplint.py –filter=-whitespace test.cpp
将错误按照不同类型进行统计: cpplint.py –counting=detailed test.cpp
检测一行长度是否超出指定字符: cpplint.py –linelength=120 test.cpp
帮助 cpplint.py –help