Skip to content

Release 1.7

Release 1.7 #23

Triggered via pull request November 13, 2024 10:16
@dengbo11dengbo11
synchronize #30
Status Success
Total duration 47s
Artifacts

cppcheck.yml

on: pull_request_target
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
cppcheck: apps/ll-builder/src/main.cpp#L207
Local variable 'arch' shadows outer variable
cppcheck: apps/ll-builder/src/main.cpp#L792
Consider using std::transform algorithm instead of a raw loop.
cppcheck: libs/linglong/src/linglong/builder/linglong_builder.cpp#L989
Consider using std::transform algorithm instead of a raw loop.
cppcheck: libs/linglong/src/linglong/cli/dbus_notifier.cpp#L184
Parameter 'action' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++.
cppcheck: libs/linglong/src/linglong/cli/dbus_notifier.cpp#L184
The function 'forwardActionInvoked' is never used.
cppcheck: libs/linglong/src/linglong/cli/dbus_notifier.cpp#L189
The function 'forwardNotificationClosed' is never used.
cppcheck: libs/linglong/src/linglong/package/uab_packager.cpp#L631
The scope of the variable 'metaSection' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced:\012void f(int x)\012{\012 int i = 0;\012 if (x) {\012 // it's safe to move 'int i = 0;' here\012 for (int n = 0; n < 10; ++n) {\012 // it is possible but not safe to move 'int i = 0;' here\012 do_something(&i);\012 }\012 }\012}\012When you see this message it is always safe to reduce the variable scope 1 level.
cppcheck: tools/qdbusxml2cpp/qdbusxml2cpp_6.cpp#L212
Local variable 'header' shadows outer function
cppcheck: tools/qdbusxml2cpp/qdbusxml2cpp_6.cpp#L743
Local variable 'argNames' shadows outer variable
cppcheck: tools/qdbusxml2cpp/qdbusxml2cpp_6.cpp#L205
Consider using std::any_of algorithm instead of a raw loop.