Skip to content

Commit

Permalink
CI: cppcheck - added a few more directories to check
Browse files Browse the repository at this point in the history
  • Loading branch information
smoe committed Oct 20, 2024
1 parent e206a7c commit 696c425
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions scripts/cppcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,31 @@ fi

# *** C dominated folder ***
echo -n "I (1/4): checking HAL folders with C code only from dir "; pwd
for d in src/hal/classicladder src/hal/components; do
(cd $d && cppcheck -j $nproc --language=c --force *.h *.c)
for d in src/hal/classicladder src/hal/components src/hal/drivers \
src/hal/user_comps $(find src/hal/user_comps/ -type d src/hal/utils)
do
(cd "$d" && cppcheck -j $nproc --language=c --force *.h *.c)
done

echo -n "I (2/4): checking EMC folders with C code only from dir "; pwd
for d in src/emc/motion-logger src/emc/tp
do
(cd $d && cppcheck -j $nproc --language=c --force *.h *.c)
(cd "$d" && cppcheck -j $nproc --language=c --force *.h *.c)
done
# problematic: src/hal/drivers src/hal/user_comps src/hal/utits

# *** C++ dominated folder ***
echo -n "I (3/4): checking EMC folders with C++ code only from dir "; pwd
for d in src/emc/canterp src/emc/ini src/emc/pythonplugin src/emc/tooldata
do
(cd $d && cppcheck -j $nproc --language=c++ --force *.hh *.cc)
(cd "$d" && cppcheck -j $nproc --language=c++ --force *.hh *.cc)
done
# problematic iotask src/emc/sai src/emc/task

# *** C++ and C++ in same folder ***
echo -n "I (4/4): checking EMC folders with both C and C++ code from dir "; pwd
for d in src/emc/rs274ngc;
do
(cd $d && cppcheck -j $nproc --language=c --force *.h *.c && cppcheck -j $nproc --language=c++ --force *.hh *.cc)
(cd "$d" && cppcheck -j $nproc --language=c --force *.h *.c && cppcheck -j $nproc --language=c++ --force *.hh *.cc)
done
# problematic src/emc/kinematics src/emc/nml_intf src/emc/usr_intf

0 comments on commit 696c425

Please sign in to comment.