diff --git a/Tools/astyle/files_to_check_code_style.sh b/Tools/astyle/files_to_check_code_style.sh index 6f77a514ab..55f825b762 100755 --- a/Tools/astyle/files_to_check_code_style.sh +++ b/Tools/astyle/files_to_check_code_style.sh @@ -8,23 +8,24 @@ if [ $# -gt 0 ]; then fi exec find boards msg src platforms test \ - -path msg/templates/urtps -prune -o \ - -path platforms/nuttx/NuttX -prune -o \ - -path platforms/qurt/dspal -prune -o \ - -path src/drivers/uavcan/libuavcan -prune -o \ - -path src/drivers/uavcan/uavcan_drivers/kinetis/driver/include/uavcan_kinetis -prune -o \ - -path src/drivers/cyphal/libcanard -prune -o \ - -path src/lib/crypto/monocypher -prune -o \ - -path src/lib/events/libevents -prune -o \ - -path src/lib/parameters/uthash -prune -o \ - -path src/modules/ekf2/EKF -prune -o \ - -path src/modules/gyro_fft/CMSIS_5 -prune -o \ - -path src/modules/mavlink/mavlink -prune -o \ - -path src/modules/micrortps_bridge/micro-CDR -prune -o \ - -path src/modules/micrortps_bridge/microRTPS_client -prune -o \ - -path test/mavsdk_tests/catch2 -prune -o \ - -path src/lib/crypto/monocypher -prune -o \ - -path src/lib/crypto/libtomcrypt -prune -o \ - -path src/lib/crypto/libtommath -prune -o \ - -path src/modules/microdds_client/Micro-XRCE-DDS-Client -prune -o \ + -not -path "msg/templates/urtps/*" \ + -not -path "platforms/nuttx/NuttX/*" \ + -not -path "platforms/qurt/dspal/*" \ + -not -path "src/drivers/gps/devices/*" \ + -not -path "src/drivers/uavcan/libuavcan/*" \ + -not -path "src/drivers/uavcan/uavcan_drivers/kinetis/driver/include/uavcan_kinetis/*" \ + -not -path "src/drivers/cyphal/libcanard/*" \ + -not -path "src/lib/crypto/monocypher/*" \ + -not -path "src/lib/events/libevents/*" \ + -not -path "src/lib/parameters/uthash/*" \ + -not -path "src/modules/ekf2/EKF/*" \ + -not -path "src/modules/gyro_fft/CMSIS_5/*" \ + -not -path "src/modules/mavlink/mavlink/*" \ + -not -path "src/modules/micrortps_bridge/micro-CDR/*" \ + -not -path "src/modules/micrortps_bridge/microRTPS_client/*" \ + -not -path "test/mavsdk_tests/catch2/*" \ + -not -path "src/lib/crypto/monocypher/*" \ + -not -path "src/lib/crypto/libtomcrypt/*" \ + -not -path "src/lib/crypto/libtommath/*" \ + -not -path "src/modules/microdds_client/Micro-XRCE-DDS-Client/*" \ -type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp" \) | grep $PATTERN