Skip to content

Add SAST workflows

Add SAST workflows #1

Triggered via push July 29, 2023 04:17
Status Success
Total duration 13h 50m 45s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

cpp-linter.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 10 warnings, and 10 notices
/apps/self_update/self_update.c:43:26 [bugprone-reserved-identifier]: apps/self_update/self_update.c#L43
declaration uses identifier '_timer_count', which is reserved in the global namespace
/apps/self_update/self_update.c:43:26 [cppcoreguidelines-avoid-non-const-global-variables]: apps/self_update/self_update.c#L43
variable '_timer_count' is non-const and globally accessible, consider making it const
/apps/self_update/self_update.c:53:21 [cppcoreguidelines-avoid-magic-numbers: apps/self_update/self_update.c#L53
25 is a magic number; consider replacing it with a named constant
/apps/self_update/self_update.c:72:27 [cppcoreguidelines-avoid-magic-numbers: apps/self_update/self_update.c#L72
0xff is a magic number; consider replacing it with a named constant
/apps/erase_firmware/erase_firmware.c:38:17 [bugprone-reserved-identifier]: apps/erase_firmware/erase_firmware.c#L38
declaration uses identifier '_board_dfu_dbl_tap', which is reserved in the global namespace
/apps/erase_firmware/erase_firmware.c:38:17 [cppcoreguidelines-avoid-non-const-global-variables]: apps/erase_firmware/erase_firmware.c#L38
variable '_board_dfu_dbl_tap' is non-const and globally accessible, consider making it const
/ports/stm32l4/board_flash.c:42:16 [cppcoreguidelines-avoid-non-const-global-variables]: ports/stm32l4/board_flash.c#L42
variable 'erased_sectors' is non-const and globally accessible, consider making it const
/ports/stm32l4/board_flash.c:118:34 [cppcoreguidelines-avoid-magic-numbers: ports/stm32l4/board_flash.c#L118
8 is a magic number; consider replacing it with a named constant
/ports/stm32l4/boards.c:39:20 [cppcoreguidelines-avoid-non-const-global-variables]: ports/stm32l4/boards.c#L39
variable 'UartHandle' is non-const and globally accessible, consider making it const
Run clang-format on apps/self_update/self_update.c: apps/self_update/self_update.c#L1
File apps/self_update/self_update.c does not conform to LLVM style guidelines. (lines 25, 40, 41, 45, 56, 58, 59, 64, 89, 91, 94)
Run clang-format on apps/erase_firmware/erase_firmware.c: apps/erase_firmware/erase_firmware.c#L1
File apps/erase_firmware/erase_firmware.c does not conform to LLVM style guidelines. (lines 25, 39, 46, 56, 57, 62, 63, 78, 80, 83)
Run clang-format on ports/stm32l4/board_flash.c: ports/stm32l4/board_flash.c#L1
File ports/stm32l4/board_flash.c does not conform to LLVM style guidelines. (lines 35, 37, 38, 39, 42, 48, 50, 54, 56, 58, 66, 75, 80, 84, 92, 107, 113, 118, 120, 122, 128, 136, 145, 146, 150, 151, 152, 155, 157, 160, 161, 165, 173, 182, 184, 185)
Run clang-format on ports/stm32l4/boards.c: ports/stm32l4/boards.c#L1
File ports/stm32l4/boards.c does not conform to LLVM style guidelines. (lines 25, 37, 41, 55, 86, 87, 88, 89, 93, 94, 96, 97, 98, 99, 104, 105, 107, 108, 110, 156, 160, 165, 169, 170, 171, 174, 175, 176, 179, 181, 189, 192, 199, 201, 240, 249, 252, 265, 267, 271, 272, 273, 275, 277, 336, 337, 338, 347, 349, 352, 353, 354, 357, 358, 359, 362, 365, 368, 369, 376, 377, 378, 384, 385)
Run clang-format on ports/stm32l4/boards/swan_r5/board.c: ports/stm32l4/boards/swan_r5/board.c#L1
File ports/stm32l4/boards/swan_r5/board.c does not conform to LLVM style guidelines. (lines 4, 5, 10, 15, 16, 17, 22, 27, 30, 31, 32, 33, 34, 36, 37, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55, 56, 58, 59, 60, 61, 62, 63, 64, 65, 67, 68, 69, 70)
Run clang-format on ports/stm32f3/board_flash.c: ports/stm32f3/board_flash.c#L1
File ports/stm32f3/board_flash.c does not conform to LLVM style guidelines. (lines 35, 37, 39, 42, 45, 48, 54, 56, 60, 62, 64, 72, 84, 89, 92, 98, 118, 123, 125, 127, 133, 141, 150, 151, 155, 156, 157, 160, 162, 165, 166, 170, 178, 183, 188, 201, 203, 206, 210, 211, 213, 216, 230, 233, 236, 243, 246, 249, 250, 255, 258, 261, 263, 278, 279)
Run clang-format on ports/stm32f3/boards.c: ports/stm32f3/boards.c#L1
File ports/stm32f3/boards.c does not conform to LLVM style guidelines. (lines 36, 42, 43, 44, 47, 64, 71, 72, 81, 82, 89, 90, 95, 96, 97, 98, 102, 103, 105, 106, 107, 108, 109, 113, 118, 130, 131, 132, 135, 136, 137, 140, 142, 149, 151, 155, 161, 164, 165, 168, 169, 172, 173, 178, 203, 212, 215, 228, 230, 234, 235, 236, 238, 240, 243, 246, 254, 255, 256, 258, 259, 260, 264, 269, 274, 277, 279, 280, 281, 291, 292, 293, 302, 304, 307, 308, 309, 312, 313, 314, 317, 320, 323, 324, 331, 332, 333, 339, 340, 341, 346, 347, 348, 355, 356)
Run clang-format on ports/espressif/components/lcd/lcd.c: ports/espressif/components/lcd/lcd.c#L1
File ports/espressif/components/lcd/lcd.c does not conform to LLVM style guidelines. (lines 22, 30, 84, 86, 94, 137, 139, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 176, 177, 178, 179, 181, 182, 183, 185, 186, 187, 188, 189, 190, 193, 195, 196, 197, 203, 204, 205, 206, 208, 209, 210, 211, 212, 214, 215, 222, 223, 224, 225, 226, 228, 229, 230, 231, 232, 233, 234, 235, 236, 238, 241, 242, 243, 247, 248, 249, 251, 255, 256, 257, 259, 262, 263, 264, 265, 267, 271, 272, 273, 274, 276, 278, 279, 280, 281, 282, 283, 284, 285, 286, 290, 291, 294, 295, 298, 300, 301, 302, 303, 304, 305, 306, 308, 309, 310, 311, 313, 314, 315, 317, 320, 321, 322, 323, 326, 329, 330, 331, 332, 334, 335, 336, 337, 338, 342, 343, 344, 345, 346, 347, 349, 350, 351, 352, 353, 354, 355, 357, 358, 359, 360, 362, 363, 364, 365, 366, 367, 368, 369, 370, 372, 373, 375, 377, 378, 379, 380, 381, 383, 384, 385, 386, 387, 389, 390, 391, 392, 394, 395, 396, 397, 398, 400, 401, 402, 403, 432, 434)
Run clang-format on ports/espressif/components/bootloader/subproject/main/bootloader_start.c: ports/espressif/components/bootloader/subproject/main/bootloader_start.c#L1
File ports/espressif/components/bootloader/subproject/main/bootloader_start.c does not conform to LLVM style guidelines. (lines 14, 22, 25, 31, 32, 34, 35, 38, 39, 40, 41, 44, 45, 47, 48, 49, 52, 53, 72, 76, 77, 78, 79, 80, 81, 82, 83, 87, 88, 93, 94, 95, 97, 98, 99, 100, 101, 102, 104, 105, 106, 107, 109, 110, 111, 114, 115, 116, 117, 118, 120, 122, 123, 124, 125, 126, 127, 129, 134, 135, 136, 137, 138, 139, 140, 142, 150, 151, 152, 153, 154, 155, 157, 158, 160, 162, 164, 165, 166, 168, 170, 171, 172, 173, 174, 175, 176, 178, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 191, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 209, 210, 211, 212, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 229, 231, 232, 233, 234, 235, 237, 238, 239, 240, 241, 242, 244, 245, 246, 247, 248, 251, 252, 254, 256, 257, 259, 260, 261, 262, 263, 268, 269, 277, 288, 291, 295, 302, 303, 304, 305, 306, 312, 314, 317, 320, 321, 322, 324, 325, 328, 329, 330, 334, 337, 339, 341, 346, 352, 357, 358, 361, 363, 365, 369, 371, 372, 374, 378, 389, 400, 409, 413, 414, 416, 419, 420, 424, 426, 431, 435, 436, 442, 446, 453, 456, 458, 463, 478, 480, 484, 485, 492, 501, 504, 508, 509, 510, 511, 517, 525, 526, 540, 546, 561, 567, 570, 578, 579, 582, 583, 591, 594, 595, 600)
Run clang-format on ports/espressif/components/bootloader/subproject/components/micro-ecc/uECC_verify_antifault.c: ports/espressif/components/bootloader/subproject/components/micro-ecc/uECC_verify_antifault.c#L1
File ports/espressif/components/bootloader/subproject/components/micro-ecc/uECC_verify_antifault.c does not conform to LLVM style guidelines. (lines 10, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 35, 37, 39, 40, 41, 42, 44, 45, 48, 49, 50, 51, 52, 53, 54, 55, 57, 59, 60, 61, 62, 64, 65, 66, 67, 68, 70, 71, 72, 73, 74, 75, 77, 78, 79, 80, 81, 82, 83, 84, 85, 87, 88, 89, 90, 91, 92, 93, 95, 96, 97, 98, 99, 100, 102, 103, 104, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 118, 119, 121, 122, 123, 124, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 141)