client: lib_linter: add more C++ extensions
Needed for linting `root` C++ plugins.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user