--- freem/scripts/fmd-lint 2025/04/10 01:24:38 1.3 +++ freem/scripts/fmd-lint 2025/04/15 14:39:06 1.4 @@ -1,7 +1,7 @@ #!/usr/bin/env bash # -# $Id: fmd-lint,v 1.3 2025/04/10 01:24:38 snw Exp $ +# $Id: fmd-lint,v 1.4 2025/04/15 14:39:06 snw Exp $ # Run cppcheck on FreeM # # @@ -25,6 +25,9 @@ # along with FreeM. If not, see . # # $Log: fmd-lint,v $ +# Revision 1.4 2025/04/15 14:39:06 snw +# Further improvements to logging +# # Revision 1.3 2025/04/10 01:24:38 snw # Remove C++ style comments # @@ -70,7 +73,7 @@ FMD=$1 REPORTFILE="freem_lint_${_fmd_freem_version}.log" echo -n "${PGM}: linting src/*.[ch] to ${REPORTFILE} (this may take awhile)... " -cppcheck --quiet --check-level=exhaustive --enable=all --inconclusive src/*.[ch] &> "${REPORTFILE}" +cppcheck --language=c --std=c99 --template=gcc --suppress=missingIncludeSystem --enable=all --check-level=exhaustive --quiet --force --check-level=exhaustive --enable=all --inconclusive src/*.[ch] &> "${REPORTFILE}" if [[ $? == 0 ]] then echo "[OK]"