Skip to content

Lab_2

Lab_2 #3083

Triggered via pull request November 22, 2024 04:40
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, 7 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/Tests/vector.cpp:6:12 [cppcoreguidelines-pro-type-cstyle-cast]: LibraryC/Tests/vector.cpp#L6
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:122:13 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]: LibraryC/vector.c#L122
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, 4, 5, 6, 9, 10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 23, 25, 26, 27, 28, 29, 31, 32, 33, 35, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 47, 48, 49, 51, 52, 53, 54, 55, 56, 57, 58, 59, 61, 62, 63, 64, 65, 66, 68, 69, 70, 71, 72, 73, 74, 75, 76, 78, 79, 80, 81, 82, 83, 84, 85, 86, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100)
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, 6, 7, 8, 9, 10, 14, 15, 17, 19, 20, 21, 22, 24, 26, 27, 28, 29, 30, 32, 33, 34, 39, 40, 41, 42, 43, 45, 46, 47, 48, 49, 50, 52, 53, 54, 55, 60, 61, 62, 63, 64, 66, 67, 68, 74, 75, 76, 77, 78, 79, 81, 82, 84, 85, 86, 87, 89, 94, 99, 100, 102, 103, 104, 106, 107, 108, 109, 111, 112, 113, 114, 115, 117, 118, 119, 120, 121, 122, 123, 124, 126, 127, 128, 129, 130, 131, 136, 137, 138, 139, 141, 142, 143, 144, 148, 149, 150, 151, 152, 154)
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, 22, 26, 30, 32)