render-se / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

When is nuttx source code scanned by cppcheck & clang-tidy? #15

Closed jrn90 closed 2 years ago

jrn90 commented 2 years ago

When is the NuttX source code scanned by the following commands:

Acceptance Criteria

jrn90 commented 2 years ago

The NuttX source code is not scanned by running make cppcheck or make clang-tidy. The target for make cppcheck and make clan-tidy is px4_sitl_default which compiles for POSIX. The targets can be found in the Makefile.

This config option is set with CONFIG_PLATFORM_POSIX=y inside of a *.px4board file. The default is NuttX which is set in the Kconfig file.

This causes cppcheck and clang-tidy to not scan any of the NuttX source code because it is not used in either of these builds.

jrn90 commented 2 years ago

Info captured in wiki.