From eb2e17fe2d82c089d155616288685742d5a1f7e4 Mon Sep 17 00:00:00 2001 From: Aaron Fiore Date: Sat, 10 Aug 2024 19:16:00 -0700 Subject: [PATCH] client: lib_linter: add more C++ extensions Needed for linting `root` C++ plugins. --- client/src/docker/lib/internal/dev-tools/lib_linter.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/docker/lib/internal/dev-tools/lib_linter.bash b/client/src/docker/lib/internal/dev-tools/lib_linter.bash index f704010..78b9055 100644 --- a/client/src/docker/lib/internal/dev-tools/lib_linter.bash +++ b/client/src/docker/lib/internal/dev-tools/lib_linter.bash @@ -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