Merge pull request #295 into master
321751d0container: root: common: add `cppcheck-suppress stlIfStrFind` (Aaron Fiore)b9b6a0b9client: dev-tools: lib_linter: cppcheck: bump to --std=c++20 (Aaron Fiore)
This commit was merged in pull request #295.
This commit is contained in:
@@ -177,7 +177,7 @@ function lib_linter::__lint_cpp()
|
||||
|
||||
local -r _clang_format="clang-format -i --style=file:${_clang_file}"
|
||||
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"
|
||||
local -r _cppcheck="cppcheck --enable=warning,style,performance,portability --inline-suppr --std=c++20"
|
||||
|
||||
if [ -z "${_path[*]}" ]; then
|
||||
# Do all
|
||||
|
||||
@@ -442,15 +442,15 @@ class PluggableSpace
|
||||
"[a-zA-Z0-9:/_\\-\\.]+"} /* TODO(unassigned): refine */),
|
||||
"invalid characters in pluggable space");
|
||||
|
||||
if (parsed.find('/'))
|
||||
if (parsed.find('/')) // cppcheck-suppress stlIfStrFind
|
||||
{
|
||||
parsed = std::regex_replace(parsed, std::regex{"/"}, "::");
|
||||
}
|
||||
if (parsed.find('-'))
|
||||
if (parsed.find('-')) // cppcheck-suppress stlIfStrFind
|
||||
{
|
||||
parsed = std::regex_replace(parsed, std::regex{"-"}, "_");
|
||||
}
|
||||
if (parsed.find('.'))
|
||||
if (parsed.find('.')) // cppcheck-suppress stlIfStrFind
|
||||
{
|
||||
parsed = std::regex_replace(parsed, std::regex{"\\."}, "_");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user