Implement CppCheck linting via flylint extension

This commit is contained in:
Paul Guenette
2019-03-14 23:16:22 +01:00
parent 230426f8c8
commit 06cc3d8b0e
+20
View File
@@ -11,6 +11,26 @@
}
],
"settings": {
"c-cpp-flylint.cppcheck.includePaths": [
"${workspaceRoot}",
"${workspaceRoot}/fibre/cpp/include/fibre",
"${workspaceRoot}/MotorControl",
"${workspaceRoot}/Drivers/DRV8301",
"${workspaceRoot}/communication"
],
"c-cpp-flylint.cppcheck.language": "c++",
"c-cpp-flylint.cppcheck.standard": ["c99","c++14"],
"c-cpp-flylint.cppcheck.defines": [
"STM32F405xx",
"USE_HAL_DRIVER",
"HW_VERSION_MAJOR=3",
"HW_VERSION_MINOR=5",
"HW_VERSION_VOLTAGE=24",
"USB_PROTOCOL_NATIVE",
"__weak=\"__attribute__((weak))\"",
"__packed=\"__attribute__((__packed__))\"",
"__GNUC__"
],
"files.associations": {
"memory": "cpp",
"utility": "cpp",