Skip to content

Lab_2

Lab_2 #2795

Triggered via pull request November 17, 2024 03:32
Status Success
Total duration 34s
Artifacts

clangtidy.yml

on: pull_request
cpp-linter
26s
cpp-linter
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 6 warnings, and 10 notices
Lab1C/lab1.c:11:10 [clang-diagnostic-error]: Lab1C/lab1.c#L11
'array.h' file not found
Lab1C/lab2.c:5:10 [clang-diagnostic-error]: Lab1C/lab2.c#L5
'stack.h' file not found
LibraryCPP/stack.h:11:1 [clang-diagnostic-error]: LibraryCPP/stack.h#L11
must use 'struct' tag to refer to type 'Stack'
LibraryCPP/stack.h:14:19 [clang-diagnostic-error]: LibraryCPP/stack.h#L14
must use 'struct' tag to refer to type 'Stack'
LibraryCPP/stack.h:18:17 [clang-diagnostic-error]: LibraryCPP/stack.h#L18
must use 'struct' tag to refer to type 'Stack'
LibraryCPP/stack.h:21:22 [clang-diagnostic-error]: LibraryCPP/stack.h#L21
must use 'struct' tag to refer to type 'Stack'
LibraryCPP/stack.h:25:16 [clang-diagnostic-error]: LibraryCPP/stack.h#L25
must use 'struct' tag to refer to type 'Stack'
LibraryC/Tests/stack.cpp:7:12 [cppcoreguidelines-pro-type-cstyle-cast]: LibraryC/Tests/stack.cpp#L7
do not use C-style cast to convert between unrelated types
LibraryC/Tests/stack.cpp:20:13 [cppcoreguidelines-pro-type-cstyle-cast]: LibraryC/Tests/stack.cpp#L20
do not use C-style cast to convert between unrelated types
LibraryC/array.c:42:25 [performance-no-int-to-ptr]: LibraryC/array.c#L42
integer to pointer cast pessimizes optimization opportunities
LibraryC/vector.c:116:13 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]: LibraryC/vector.c#L116
Call to function 'memcpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memcpy_s' in case of C11
LibraryCPPClass/stack.h:8:7 [cppcoreguidelines-avoid-non-const-global-variables]: LibraryCPPClass/stack.h#L8
variable 'Stack' is non-const and globally accessible, consider making it const
cpp-linter
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Run clang-format on Lab1C/lab1.c: Lab1C/lab1.c#L1
File Lab1C/lab1.c does not conform to Custom style guidelines. (lines 1, 2, 3, 4, 5, 6, 13, 14, 15, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 29, 30, 31, 32, 33, 34, 36, 37, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 60, 61, 62, 63, 64, 65, 66, 68, 69, 70, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 87, 88, 89, 90, 91, 92, 93, 95, 96, 97, 98, 99, 100, 102, 104, 105, 106, 107, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121)
Run clang-format on Lab1C/lab2.c: Lab1C/lab2.c#L1
File Lab1C/lab2.c does not conform to Custom style guidelines. (lines 1, 7, 9, 10, 11, 14, 15, 18, 19, 20, 21, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 37, 38, 39, 40, 41, 42, 43, 44, 46, 47, 48, 49, 51, 52, 53, 54, 55, 56, 57, 58, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 88, 89, 90, 92, 93, 94, 95, 96, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 109, 110, 114, 115, 116, 120, 121, 122, 123, 124, 125, 126, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 139, 141, 142, 143, 144, 146, 147, 148)
Run clang-format on LibraryC/Tests/stack.cpp: LibraryC/Tests/stack.cpp#L1
File LibraryC/Tests/stack.cpp does not conform to Custom style guidelines. (lines 1, 5, 6, 7, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 23, 24, 25, 27, 28, 29, 30, 32, 33, 34, 35, 36, 37, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 50, 51, 52, 53, 54, 55, 56, 57, 58, 60, 61, 62, 63, 65, 66, 67, 68, 69, 70, 71, 73, 74, 75, 76, 77, 78)
Run clang-format on LibraryC/Tests/vector.cpp: LibraryC/Tests/vector.cpp#L1
File LibraryC/Tests/vector.cpp does not conform to Custom style guidelines. (lines 1, 7, 8, 10, 12, 13, 14, 15, 17, 19, 20, 21, 22, 23, 25, 26, 27, 32, 33, 34, 35, 36, 38, 39, 40, 41, 42, 43, 45, 46, 47, 48, 53, 54, 55, 56, 57, 59, 60, 61, 67, 68, 69, 70, 71, 73, 74, 75, 76, 77, 78, 80, 81, 82, 88, 93, 94, 96, 97, 98, 99, 101, 102, 103, 104, 105, 107, 108, 109, 110, 111, 112, 113, 114, 116, 117, 118, 119, 120, 121, 126, 128, 129, 130, 132, 133, 134, 135, 139, 141, 142, 143, 144, 146)
Run clang-format on LibraryC/array.c: LibraryC/array.c#L1
File LibraryC/array.c does not conform to Custom style guidelines. (lines 1, 5, 6, 7, 8, 9, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 28, 29, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 51, 52, 53, 54, 55, 56, 58, 62, 63, 64, 65, 66, 67, 68, 73, 74, 75)
Run clang-format on LibraryC/array.h: LibraryC/array.h#L1
File LibraryC/array.h does not conform to Custom style guidelines. (lines 11)
Run clang-format on LibraryC/stack.c: LibraryC/stack.c#L1
File LibraryC/stack.c does not conform to Custom style guidelines. (lines 1, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 26, 27, 28, 29, 30, 32, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 49, 50, 51, 52, 53, 54, 55, 58, 59, 60, 61, 62, 63, 64, 67, 68, 69)
Run clang-format on LibraryC/stack.h: LibraryC/stack.h#L1
File LibraryC/stack.h does not conform to Custom style guidelines. (lines 1, 4, 8, 11, 13, 15, 17, 19, 21, 23, 26)
Run clang-format on LibraryC/vector.c: LibraryC/vector.c#L1
File LibraryC/vector.c does not conform to Custom style guidelines. (lines 1, 7, 8, 10, 12, 13, 14, 15, 17, 19, 20, 21, 22, 23, 25, 26, 27, 32, 33, 34, 35, 36, 38, 39, 40, 41, 42, 43, 45, 46, 47, 48, 53, 54, 55, 56, 57, 59, 60, 61, 67, 68, 69, 70, 71, 72, 74, 75, 76, 77, 78, 79, 80, 82, 83, 84, 85, 87, 92, 97, 98, 100, 101, 102, 103, 105, 106, 107, 108, 109, 111, 112, 113, 114, 115, 116, 117, 118, 120, 121, 122, 123, 124, 125, 130, 131, 132, 133, 135, 136, 137, 138, 142, 143, 144, 145, 146, 148)
Run clang-format on LibraryC/vector.h: LibraryC/vector.h#L1
File LibraryC/vector.h does not conform to Custom style guidelines. (lines 6, 8, 11, 12, 13, 14, 15, 16, 28, 32, 36, 38)