Closed
Description
The clang-tidy
command is a powerful tool from the llvm suite with the ability to:
- apply a large set of robustness checks
- automatically modernize code
Details at https://clang.llvm.org/extra/clang-tidy/
clang-tidy uses static analysis
We should integrate an easy clang-tidy workflow into node-cpp-skel by following the lead of both nodejs core, mapbox-gl-native, and OSRM:
- tools: add compile_commands.json gyp generator nodejs/node#7986
- Re-enable tidy checks mapbox-gl-native#5325
- Project-OSRM/osrm-backend@998abf0
Note: I presume clang-tidy will find very few issues with the current node-cpp-skel code, since it is fairly simple. The main idea here is to put this in place so that modules based on node-cpp-skel will more readily catch bugs before they hit production.
Metadata
Metadata
Assignees
Labels
No labels