Skip to content

Commit

Permalink
cppcheck.sh: make duplicateExpressionTernary an error
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault authored and nyalldawson committed Jun 15, 2020
1 parent c7de294 commit 21bc22f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/cppcheck.sh
Expand Up @@ -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}
Expand Down

0 comments on commit 21bc22f

Please sign in to comment.