--- freem/scripts/fmd-lint 2025/04/09 15:47:36 1.1 +++ freem/scripts/fmd-lint 2025/04/10 01:24:38 1.3 @@ -1,7 +1,7 @@ #!/usr/bin/env bash # -# $Id: fmd-lint,v 1.1 2025/04/09 15:47:36 snw Exp $ +# $Id: fmd-lint,v 1.3 2025/04/10 01:24:38 snw Exp $ # Run cppcheck on FreeM # # @@ -25,6 +25,12 @@ # along with FreeM. If not, see . # # $Log: fmd-lint,v $ +# Revision 1.3 2025/04/10 01:24:38 snw +# Remove C++ style comments +# +# Revision 1.2 2025/04/09 19:52:02 snw +# Eliminate as many warnings as possible while building with -Wall +# # Revision 1.1 2025/04/09 15:47:36 snw # Add fmd lint command # @@ -63,5 +69,12 @@ fi FMD=$1 REPORTFILE="freem_lint_${_fmd_freem_version}.log" -cppcheck --quiet --enable=all --inconclusive src/*.[ch] &> "${REPORTFILE}" +echo -n "${PGM}: linting src/*.[ch] to ${REPORTFILE} (this may take awhile)... " +cppcheck --quiet --check-level=exhaustive --enable=all --inconclusive src/*.[ch] &> "${REPORTFILE}" +if [[ $? == 0 ]] +then + echo "[OK]" +else + echo "[FAIL]" +fi