plasma-desktop-6.2.3-1.fc42

List of Findings

Error: SHELLCHECK_WARNING (CWE-156): [#def1]
/usr/share/sddm/themes/01-breeze-fedora/Messages.sh:2:11: warning[SC2046]: Quote this to prevent word splitting.
#    1|   #! /usr/bin/env bash
#    2|-> $XGETTEXT `find . -name \*.qml` -L Java -o $podir/plasma-desktop-sddm-theme.pot

Error: SHELLCHECK_WARNING (CWE-457): [#def2]
/usr/share/sddm/themes/01-breeze-fedora/Messages.sh:2:44: warning[SC2154]: podir is referenced but not assigned.
#    1|   #! /usr/bin/env bash
#    2|-> $XGETTEXT `find . -name \*.qml` -L Java -o $podir/plasma-desktop-sddm-theme.pot

Error: SHELLCHECK_WARNING (CWE-156): [#def3]
/usr/share/sddm/themes/breeze/Messages.sh:2:11: warning[SC2046]: Quote this to prevent word splitting.
#    1|   #! /usr/bin/env bash
#    2|-> $XGETTEXT `find . -name \*.qml` -L Java -o $podir/plasma-desktop-sddm-theme.pot

Error: SHELLCHECK_WARNING (CWE-457): [#def4]
/usr/share/sddm/themes/breeze/Messages.sh:2:44: warning[SC2154]: podir is referenced but not assigned.
#    1|   #! /usr/bin/env bash
#    2|-> $XGETTEXT `find . -name \*.qml` -L Java -o $podir/plasma-desktop-sddm-theme.pot

Error: COMPILER_WARNING: [#def5]
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/applets/kimpanel/backend/scim/main.cpp: scope_hint: In function ‘int main(int, char**)’
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/applets/kimpanel/backend/scim/main.cpp:1112:26: warning[-Wzero-as-null-pointer-constant]: zero as null pointer constant
# 1112 |     new_argv[new_argc] = 0;
#      |                          ^
# 1110|       }
# 1111|   
# 1112|->     new_argv[new_argc] = 0;
# 1113|   
# 1114|       if (!config_name.length()) {

Error: COMPILER_WARNING (CWE-477): [#def6]
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/containments/desktop/plugins/folder/eventgenerator.cpp: scope_hint: In member function ‘void EventGenerator::sendMouseEvent(QQuickItem*, MouseEvent, int, int, int, Qt::MouseButtons, Qt::KeyboardModifiers)’
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/containments/desktop/plugins/folder/eventgenerator.cpp:49:102: warning[-Wdeprecated-declarations]: ‘QMouseEvent::QMouseEvent(QEvent::Type, const QPointF&, Qt::MouseButton, Qt::MouseButtons, Qt::KeyboardModifiers, const QPointingDevice*)’ is deprecated: Use another constructor
#   49 |     QMouseEvent ev(eventType, QPointF(x, y), static_cast<Qt::MouseButton>(button), buttons, modifiers);
#      |                                                                                                      ^
/usr/include/qt6/QtQuick/qquickitem.h:14: included_from: Included from here.
/usr/include/qt6/QtQuick/QQuickItem:1: included_from: Included from here.
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/containments/desktop/plugins/folder/eventgenerator.cpp:11: included_from: Included from here.
/usr/include/qt6/QtGui/qevent.h:201:5: note: declared here
#  201 |     QMouseEvent(Type type, const QPointF &localPos, Qt::MouseButton button,
#      |     ^~~~~~~~~~~
#   47|           return;
#   48|       }
#   49|->     QMouseEvent ev(eventType, QPointF(x, y), static_cast<Qt::MouseButton>(button), buttons, modifiers);
#   50|   
#   51|       QGuiApplication::sendEvent(item, &ev);

Error: COMPILER_WARNING (CWE-569): [#def7]
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/containments/desktop/plugins/folder/shortcut.cpp: scope_hint: In member function ‘virtual bool ShortCut::eventFilter(QObject*, QEvent*)’
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/containments/desktop/plugins/folder/shortcut.cpp:30:50: warning[-Wparentheses]: suggest parentheses around arithmetic in operand of ‘|’
#   30 |         const int keyInt = keyEvent->modifiers() & ~Qt::KeypadModifier | keyEvent->key();
#      |                            ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
#   28|       if (e->type() == QEvent::KeyPress) {
#   29|           QKeyEvent *keyEvent = static_cast<QKeyEvent *>(e);
#   30|->         const int keyInt = keyEvent->modifiers() & ~Qt::KeypadModifier | keyEvent->key();
#   31|           if (KStandardShortcut::deleteFile().contains(QKeySequence(keyInt))) {
#   32|               Q_EMIT deleteFile();

Error: COMPILER_WARNING (CWE-1164): [#def8]
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/kcms/dateandtime/k4timezonewidget.cpp:53:13: warning[-Wunused-function]: ‘bool localeLessThan(const QString&, const QString&)’ defined but not used
#   53 | static bool localeLessThan(const QString &a, const QString &b)
#      |             ^~~~~~~~~~~~~~
#   51|   };
#   52|   
#   53|-> static bool localeLessThan(const QString &a, const QString &b)
#   54|   {
#   55|       return QString::localeAwareCompare(a, b) < 0;

Error: COMPILER_WARNING (CWE-563): [#def9]
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/kcms/keyboard/keyboardmodel.cpp: scope_hint: In member function ‘virtual int KeyboardModel::rowCount(const QModelIndex&) const’
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/kcms/keyboard/keyboardmodel.cpp:18:48: warning[-Wunused-parameter]: unused parameter ‘parent’
#   18 | int KeyboardModel::rowCount(const QModelIndex &parent) const
#      |                             ~~~~~~~~~~~~~~~~~~~^~~~~~
#   16|   }
#   17|   
#   18|-> int KeyboardModel::rowCount(const QModelIndex &parent) const
#   19|   {
#   20|       return Rules::self().modelInfos.count();

Error: COMPILER_WARNING (CWE-563): [#def10]
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/kcms/keyboard/layoutmodel.cpp: scope_hint: In member function ‘virtual int LayoutModel::rowCount(const QModelIndex&) const’
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/kcms/keyboard/layoutmodel.cpp:26:46: warning[-Wunused-parameter]: unused parameter ‘parent’
#   26 | int LayoutModel::rowCount(const QModelIndex &parent) const
#      |                           ~~~~~~~~~~~~~~~~~~~^~~~~~
#   24|   }
#   25|   
#   26|-> int LayoutModel::rowCount(const QModelIndex &parent) const
#   27|   {
#   28|       return m_data.count();

Error: COMPILER_WARNING (CWE-563): [#def11]
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/kcms/keyboard/userlayoutmodel.cpp: scope_hint: In member function ‘virtual int UserLayoutModel::rowCount(const QModelIndex&) const’
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/kcms/keyboard/userlayoutmodel.cpp:23:50: warning[-Wunused-parameter]: unused parameter ‘parent’
#   23 | int UserLayoutModel::rowCount(const QModelIndex &parent) const
#      |                               ~~~~~~~~~~~~~~~~~~~^~~~~~
#   21|   }
#   22|   
#   23|-> int UserLayoutModel::rowCount(const QModelIndex &parent) const
#   24|   {
#   25|       return m_config->layouts().count();

Error: COMPILER_WARNING (CWE-477): [#def12]
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/kcms/recentFiles/BlacklistedApplicationsModel.cpp: scope_hint: In member function ‘void BlacklistedApplicationsModel::load()’
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/kcms/recentFiles/BlacklistedApplicationsModel.cpp:84:31: warning[-Wdeprecated-declarations]: ‘QSqlQuery QSqlDatabase::exec(const QString&) const’ is deprecated: Use QSqlQuery::exec() instead.
#   84 |     auto query = database.exec(QStringLiteral("SELECT DISTINCT(initiatingAgent) FROM ResourceScoreCache ORDER BY initiatingAgent"));
#      |                  ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtSql/QSqlDatabase:1: included_from: Included from here.
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/kcms/recentFiles/BlacklistedApplicationsModel.cpp:13: included_from: Included from here.
/usr/include/qt6/QtSql/qsqldatabase.h:60:15: note: declared here
#   60 |     QSqlQuery exec(const QString& query = QString()) const;
#      |               ^~~~
#   82|       }
#   83|   
#   84|->     auto query = database.exec(QStringLiteral("SELECT DISTINCT(initiatingAgent) FROM ResourceScoreCache ORDER BY initiatingAgent"));
#   85|   
#   86|       if (d->applications.length() > 0) {

Error: COMPILER_WARNING: [#def13]
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/kcms/solid_actions/ActionEditor.cpp: scope_hint: In member function ‘void ActionEditor::manageControlStatus()’
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/kcms/solid_actions/ActionEditor.cpp:130:20: warning[-Wimplicit-fallthrough=]: this statement may fall through
#  130 |         atomEnable = true;
#      |         ~~~~~~~~~~~^~~~~~
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/kcms/solid_actions/ActionEditor.cpp:131:5: note: here
#  131 |     case Solid::Predicate::InterfaceCheck:
#      |     ^~~~
#  128|       switch (ui.CbParameterType->currentIndex()) {
#  129|       case Solid::Predicate::PropertyCheck:
#  130|->         atomEnable = true;
#  131|       case Solid::Predicate::InterfaceCheck:
#  132|           isEnable = true;

Error: COMPILER_WARNING: [#def14]
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/kcms/touchpad/touchpadbackend.h:48:18: warning[-Woverloaded-virtual=]: ‘virtual bool TouchpadBackend::applyConfig(const QVariantHash&)’ was hidden
#   48 |     virtual bool applyConfig(const QVariantHash &)
#      |                  ^~~~~~~~~~~
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/kcms/touchpad/backends/kwin_wayland/kwinwaylandbackend.h:25:10: note:   by ‘virtual bool KWinWaylandBackend::applyConfig()’
#   25 |     bool applyConfig() override;
#      |          ^~~~~~~~~~~
#   46|       }
#   47|   
#   48|->     virtual bool applyConfig(const QVariantHash &)
#   49|       {
#   50|           return false;

Error: COMPILER_WARNING: [#def15]
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/kcms/touchpad/touchpadbackend.cpp:8: included_from: Included from here.
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/kcms/touchpad/touchpadbackend.h:52:18: warning[-Woverloaded-virtual=]: ‘virtual bool TouchpadBackend::getConfig(QVariantHash&)’ was hidden
#   52 |     virtual bool getConfig(QVariantHash &)
#      |                  ^~~~~~~~~
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/kcms/touchpad/touchpadbackend.cpp:11: included_from: Included from here.
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/kcms/touchpad/backends/kwin_wayland/kwinwaylandbackend.h:26:10: note:   by ‘virtual bool KWinWaylandBackend::getConfig()’
#   26 |     bool getConfig() override;
#      |          ^~~~~~~~~
#   50|           return false;
#   51|       }
#   52|->     virtual bool getConfig(QVariantHash &)
#   53|       {
#   54|           return false;

Error: COMPILER_WARNING (CWE-477): [#def16]
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/solid-device-automounter/kcm/DeviceAutomounterKCM.cpp: scope_hint: In constructor ‘DeviceAutomounterKCM::DeviceAutomounterKCM(QObject*, const KPluginMetaData&)’
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/solid-device-automounter/kcm/DeviceAutomounterKCM.cpp:46:55: warning[-Wdeprecated-declarations]: ‘void QCheckBox::stateChanged(int)’ is deprecated: Use checkStateChanged() instead
#   46 |     connect(kcfg_AutomountUnknownDevices, &QCheckBox::stateChanged, this, [this](int state) {
#      |                                                       ^~~~~~~~~~~~
/usr/include/qt6/QtWidgets/QCheckBox:1: included_from: Included from here.
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/redhat-linux-build/solid-device-automounter/kcm/ui_DeviceAutomounterKCM.h:16: included_from: Included from here.
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/solid-device-automounter/kcm/DeviceAutomounterKCM.h:12: included_from: Included from here.
plasma-desktop-6.2.3-build/plasma-desktop-6.2.3/solid-device-automounter/kcm/DeviceAutomounterKCM.cpp:9: included_from: Included from here.
/usr/include/qt6/QtWidgets/qcheckbox.h:41:10: note: declared here
#   41 |     void stateChanged(int);
#      |          ^~~~~~~~~~~~
#   44|       deviceView->header()->setSectionResizeMode(0, QHeaderView::Stretch);
#   45|   
#   46|->     connect(kcfg_AutomountUnknownDevices, &QCheckBox::stateChanged, this, [this](int state) {
#   47|           m_devices->setAutomaticUnknown(state == Qt::Checked);
#   48|       });

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-125.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-nameplasma-desktop-6.2.3-1.fc42
store-results-to/tmp/tmp886m05z9/plasma-desktop-6.2.3-1.fc42.tar.xz
time-created2024-11-13 02:31:45
time-finished2024-11-13 02:41:37
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp886m05z9/plasma-desktop-6.2.3-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp886m05z9/plasma-desktop-6.2.3-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9