Skip to content

Add SAST workflows

Add SAST workflows #1

Triggered via push July 29, 2023 04:10
Status Success
Total duration 1h 24m 51s
Artifacts

cpp-linter.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 10 warnings, and 10 notices
/examples/mnist-simple/mcu/main.c:18:15 [cppcoreguidelines-avoid-non-const-global-variables]: examples/mnist-simple/mcu/main.c#L18
variable 'model' is non-const and globally accessible, consider making it const
/examples/mnist-simple/mcu/main.c:18:15 [cppcoreguidelines-avoid-non-const-global-variables]: examples/mnist-simple/mcu/main.c#L18
variable 'model' provides global access to a non-const object; consider making the pointed-to data 'const'
/examples/mnist-simple/mcu/main.c:22:18 [cppcoreguidelines-avoid-magic-numbers: examples/mnist-simple/mcu/main.c#L22
10 is a magic number; consider replacing it with a named constant
/examples/uci-inception/main.c:27:15 [cppcoreguidelines-avoid-non-const-global-variables]: examples/uci-inception/main.c#L27
variable 'model' is non-const and globally accessible, consider making it const
/examples/uci-inception/main.c:27:15 [cppcoreguidelines-avoid-non-const-global-variables]: examples/uci-inception/main.c#L27
variable 'model' provides global access to a non-const object; consider making the pointed-to data 'const'
/examples/uci-inception/main.c:29:26 [cppcoreguidelines-avoid-non-const-global-variables]: examples/uci-inception/main.c#L29
variable 's_TimerInstance' is non-const and globally accessible, consider making it const
/examples/uci-inception/main.c:51:18 [cppcoreguidelines-avoid-magic-numbers: examples/uci-inception/main.c#L51
10 is a magic number; consider replacing it with a named constant
/examples/mnist-densenet/main.c:39:12 [cppcoreguidelines-avoid-magic-numbers: examples/mnist-densenet/main.c#L39
32 is a magic number; consider replacing it with a named constant
Run clang-format on examples/mnist-simple/mcu/main.c: examples/mnist-simple/mcu/main.c#L1
File examples/mnist-simple/mcu/main.c does not conform to LLVM style guidelines. (lines 9, 14, 20, 21, 22, 24, 25, 27, 29, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 52, 53, 54, 55, 56, 57, 58, 60, 61, 62, 63, 64, 66, 67, 69, 70, 71, 72, 74, 75, 77, 78, 79, 80, 83, 86, 87, 88)
Run clang-format on examples/uci-inception/main.c: examples/uci-inception/main.c#L1
File examples/uci-inception/main.c does not conform to LLVM style guidelines. (lines 9, 21, 22, 23, 24, 25, 29, 30, 32, 33, 34, 35, 36, 37, 38, 39, 40, 44, 45, 46, 49, 50, 51, 53, 54, 56, 58, 60, 64, 66, 67, 68, 74, 77, 87, 88, 92, 93, 94, 96, 97, 99, 100, 101, 102, 103, 104, 105, 107, 108, 109, 110, 115, 116, 117, 118, 120, 121, 123, 124, 125, 126, 127, 128, 129, 130, 131, 133, 134, 135, 136, 137, 139, 140, 142, 143, 146, 147, 148, 149, 150, 151, 152, 153, 156, 157, 158, 160, 162, 163, 165, 167, 168, 169, 170, 171, 173, 174, 175, 176, 177, 178, 179, 181, 182, 183, 184, 185, 186, 187, 188, 189, 191, 192, 193, 197, 200, 201, 202, 208, 209, 210, 211, 215, 219, 220, 221, 225, 226, 229, 230, 231, 235, 237)
Run clang-format on examples/mnist-densenet/main.c: examples/mnist-densenet/main.c#L1
File examples/mnist-densenet/main.c does not conform to LLVM style guidelines. (lines 10, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 36, 37, 38, 39, 40, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 59, 60, 61, 62, 64, 65, 67, 69, 70, 72, 73)
Run clang-format on examples/mnist-cnn/mcu/main_cnn.c: examples/mnist-cnn/mcu/main_cnn.c#L1
File examples/mnist-cnn/mcu/main_cnn.c does not conform to LLVM style guidelines. (lines 1, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 23, 24, 25, 26, 27, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 46, 47, 48, 49, 51, 52, 54, 56, 57, 59, 60)
Run clang-format on examples/octave-conv/main.c: examples/octave-conv/main.c#L1
File examples/octave-conv/main.c does not conform to LLVM style guidelines. (lines 9, 18, 21, 25, 28, 29, 31, 32, 33, 34, 35, 36, 37, 38, 39, 43, 44, 45, 46, 50, 51, 52, 54, 55, 57, 59, 60, 62, 66, 68, 69, 70, 76, 79, 84, 89, 90, 94, 95, 96, 98, 99, 101, 102, 103, 104, 105, 106, 107, 109, 110, 111, 112, 117, 118, 119, 120, 122, 123, 125, 126, 127, 128, 129, 130, 131, 132, 133, 135, 136, 137, 138, 139, 141, 142, 144, 145, 147, 148, 149, 150, 151, 152, 153, 154, 158, 159, 160, 162, 164, 165, 167, 169, 170, 171, 172, 173, 175, 176, 177, 178, 179, 180, 181, 183, 184, 185, 186, 187, 188, 189, 190, 191, 193, 194, 195, 199, 202, 203, 204, 210, 211, 212, 213, 216, 219)
Run clang-format on examples/rnn-denoise/main_arm.c: examples/rnn-denoise/main_arm.c#L1
File examples/rnn-denoise/main_arm.c does not conform to LLVM style guidelines. (lines 11, 12, 15, 21, 26, 33, 34, 42, 46, 47, 48, 49, 50, 68, 71, 74, 75, 76, 77, 80, 81, 82, 83, 84, 85, 86, 87, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 123, 124, 125, 126, 127, 128, 131, 132, 133, 134, 138, 139, 140, 141, 142, 143, 144, 145, 147, 148, 149, 150, 151, 153, 155, 156, 158, 159, 161, 162, 163, 164, 166, 167, 168, 170, 171, 173, 174, 175, 176, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 191, 192, 193, 195, 196, 197, 198, 199, 200, 201, 202, 204, 205, 206, 207, 209, 210, 212, 213, 214, 215, 217, 218, 219, 221, 222, 223, 224, 226, 227, 229, 230, 231, 233, 234, 235, 237, 238, 239, 241, 242, 243, 244, 245, 247, 248, 249, 251, 255, 258, 267, 270, 271, 272, 273, 274, 278, 279, 280, 283, 284, 286, 287, 288, 289, 290, 291, 292, 293, 294, 298, 299, 300, 303, 304, 305, 308, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 350, 356, 357, 358, 359, 360, 364, 365, 369, 370, 372, 375, 379, 382, 386, 387, 388, 393, 396, 397, 398, 399, 400, 402, 403, 409, 413, 414, 415, 416, 418, 419, 420, 421, 423, 431, 432, 433, 434)
Run clang-format on examples/rnn-denoise/mfcc.c: examples/rnn-denoise/mfcc.c#L1
File examples/rnn-denoise/mfcc.c does not conform to LLVM style guidelines. (lines 26, 29, 36, 38, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 94, 95, 96, 102, 103, 104, 105, 106, 107, 109, 111, 112, 115, 116, 117, 118, 120, 121, 122, 123, 124, 125, 127, 128, 130, 131, 132, 134, 135, 136, 137, 139, 140, 141, 142, 144, 145, 147, 148, 149, 151, 153, 156, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 172, 174, 176, 180, 181, 182, 183, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 200, 204, 207, 208, 212, 214, 224, 233, 243, 244, 245, 248, 249, 257, 258, 259, 261, 262, 263, 264, 265, 266, 267, 269, 270, 271, 273, 274, 275, 278, 279, 280, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 295, 296, 297, 298, 300, 301, 303, 304, 305, 306, 308, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 323, 324, 325, 326, 328, 329, 330, 331, 332, 333, 334, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 349, 350, 351, 352, 353, 355)
Run clang-format on examples/rnn-denoise/main.c: examples/rnn-denoise/main.c#L1
File examples/rnn-denoise/main.c does not conform to LLVM style guidelines. (lines 11, 12, 15, 21, 25, 28, 35, 36, 44, 48, 49, 50, 51, 52, 68, 69, 70, 71, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 117, 118, 119, 120, 121, 122, 125, 126, 127, 128, 132, 133, 134, 135, 136, 137, 138, 142, 143, 144, 145, 147, 148, 149, 150, 152, 153, 155, 156, 157, 158, 159, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 175, 176, 177, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 193, 194, 196, 197, 199, 200, 201, 202, 204, 205, 206, 207, 209, 210, 212, 214, 215, 216, 217, 218, 219, 220, 221, 223, 224, 225, 226, 228, 230, 231, 233, 234, 235, 237, 238, 239, 241, 243, 244, 245, 246, 248, 249, 251, 252, 253, 255, 256, 258, 259, 260, 262, 263, 264, 266, 267, 268, 269, 271, 272, 273, 275, 277)
Run clang-format on examples/auto_test/main.c: examples/auto_test/main.c#L1
File examples/auto_test/main.c does not conform to LLVM style guidelines. (lines 9, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 51, 53, 54, 55, 56, 57, 58, 59, 60, 61, 63, 64, 65, 66, 69, 70, 71, 72, 74, 75, 76, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 93, 94, 96, 97, 98, 99, 100, 102, 103, 105, 106, 107, 108, 110, 111, 112, 114)
Run clang-format on examples/uci-har-rnn/main.c: examples/uci-har-rnn/main.c#L1
File examples/uci-har-rnn/main.c does not conform to LLVM style guidelines. (lines 9, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, 46, 47, 48, 50, 51, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 68, 69, 71, 72, 73, 74, 75, 77, 78, 80, 81, 82, 83, 85, 86, 87, 89)