client: lib_linter: add more C++ extensions

Needed for linting `root` C++ plugins.
This commit is contained in:
2024-08-10 19:16:00 -07:00
parent f14adfea35
commit eb2e17fe2d

View File

@@ -168,10 +168,10 @@ function lib_linter::__lint_bash()
function lib_linter::__lint_cpp()
{
local -r _path=("$@")
local -r _exts=("hh" "C")
local -r _exts=("hh" "cc" "cpp" "C")
local -r _clang_format="clang-format -i"
local -r _cpplint="cpplint --root=${DOCKER_FINANCE_CLIENT_REPO} --filter=-whitespace/braces,-whitespace/newline,-whitespace/line_length,-build/c++11 --headers=hh --extensions=hh,C"
local -r _cpplint="cpplint --root=${DOCKER_FINANCE_CLIENT_REPO} --filter=-whitespace/braces,-whitespace/newline,-whitespace/line_length,-build/c++11 --headers=hh --extensions=hh,cc,cpp,C"
local -r _cppcheck="cppcheck --enable=warning,style,performance,portability --inline-suppr --std=c++17"
if [ -z "${_path[*]}" ]; then