Skip to content

ci: add GitHub action for clang-tidy #15

ci: add GitHub action for clang-tidy

ci: add GitHub action for clang-tidy #15

Triggered via pull request December 6, 2024 20:24
Status Failure
Total duration 9m 35s
Artifacts

cpp-linter.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 10 warnings
gpt4all-backend/src/llamamodel_impl.h:2:2 [clang-diagnostic-error]: gpt4all-backend/src/llamamodel_impl.h#L2
This file is NOT meant to be included outside of llamamodel.cpp. Doing so is DANGEROUS. Be sure to know what you are doing before proceeding to #define LLAMAMODEL_H_I_KNOW_WHAT_I_AM_DOING_WHEN_INCLUDING_THIS_FILE
cpp-linter
Process completed with exit code 1.
gpt4all-chat/src/chatllm.cpp:798:5 [readability-isolate-declaration]: gpt4all-chat/src/chatllm.cpp#L798
multiple declarations in a single statement reduces readability
gpt4all-chat/src/chatllm.cpp:1207:23 [cppcoreguidelines-pro-type-union-access]: gpt4all-chat/src/chatllm.cpp#L1207
do not access members of unions; use (boost::)variant instead
gpt4all-chat/src/chatllm.cpp:1208:89 [cppcoreguidelines-pro-type-union-access]: gpt4all-chat/src/chatllm.cpp#L1208
do not access members of unions; use (boost::)variant instead
gpt4all-chat/src/chatllm.cpp:1211:41 [cppcoreguidelines-pro-type-union-access]: gpt4all-chat/src/chatllm.cpp#L1211
do not access members of unions; use (boost::)variant instead
gpt4all-chat/src/chatllm.cpp:1217:23 [cppcoreguidelines-pro-type-union-access]: gpt4all-chat/src/chatllm.cpp#L1217
do not access members of unions; use (boost::)variant instead
gpt4all-chat/src/chatllm.cpp:1218:17 [cppcoreguidelines-pro-type-union-access]: gpt4all-chat/src/chatllm.cpp#L1218
do not access members of unions; use (boost::)variant instead
gpt4all-chat/src/chatllm.cpp:1229:19 [cppcoreguidelines-pro-type-union-access]: gpt4all-chat/src/chatllm.cpp#L1229
do not access members of unions; use (boost::)variant instead