Skip to content
Permalink
Browse files

cppcheck.sh: make duplicateExpressionTernary an error

  • Loading branch information
rouault authored and nyalldawson committed Jun 15, 2020
1 parent c7de294 commit 21bc22fdbc6245b78df6990799eafb2cc386eb99
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/cppcheck.sh
@@ -52,12 +52,12 @@ mv ${LOG_FILE}.tmp ${LOG_FILE}
for category in "style" "performance" "portability"; do
if grep "${category}," ${LOG_FILE} >/dev/null; then
echo "INFO: Issues in '${category}' category found, but not considered as making script to fail:"
grep "${category}," ${LOG_FILE} | grep -v "clarifyCalculation,"
grep "${category}," ${LOG_FILE} | grep -v -e "clarifyCalculation," -e "duplicateExpressionTernary,"
echo ""
fi
done

for category in "error" "warning" "clarifyCalculation"; do
for category in "error" "warning" "clarifyCalculation" "duplicateExpressionTernary"; do
if grep "${category}," ${LOG_FILE} >/dev/null; then
echo "ERROR: Issues in '${category}' category found:"
grep "${category}," ${LOG_FILE}

0 comments on commit 21bc22f

Please sign in to comment.
You can’t perform that action at this time.