kf6-kirigami-addons-1.4.0-2.fc42

List of Findings

Error: COMPILER_WARNING (CWE-252): [#def1]
kf6-kirigami-addons-1.4.0-build/kirigami-addons-1.4.0/src/components/nameutils.cpp: scope_hint: In member function ‘bool NameUtils::isStringUnsuitableForInitials(const QString&)’
kf6-kirigami-addons-1.4.0-build/kirigami-addons-1.4.0/src/components/nameutils.cpp:163:16: warning[-Wunused-result]: ignoring return value of ‘bool std::any_of(_IIter, _IIter, _Predicate) [with _IIter = const QChar*; _Predicate = NameUtils::isStringUnsuitableForInitials(const QString&)::<lambda(const QChar&)>]’, declared with attribute ‘nodiscard’
#  163 |     std::any_of(string.cbegin(), string.cend(), [](const QChar &character) {
#      |     ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  164 |         return std::find(scripts.begin(), scripts.end(), character.script()) == scripts.end();
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  165 |     });
#      |     ~~          
/usr/include/c++/14/algorithm:61: included_from: Included from here.
/usr/include/qt6/QtCore/qcontainertools_impl.h:22: included_from: Included from here.
/usr/include/qt6/QtCore/qarraydataops.h:9: included_from: Included from here.
/usr/include/qt6/QtCore/qarraydatapointer.h:7: included_from: Included from here.
/usr/include/qt6/QtCore/qlist.h:8: included_from: Included from here.
/usr/include/qt6/QtCore/qstringlist.h:5: included_from: Included from here.
/usr/include/qt6/QtGui/qcolor.h:10: included_from: Included from here.
/usr/include/qt6/QtGui/QColor:1: included_from: Included from here.
kf6-kirigami-addons-1.4.0-build/kirigami-addons-1.4.0/src/components/nameutils.h:7: included_from: Included from here.
kf6-kirigami-addons-1.4.0-build/kirigami-addons-1.4.0/src/components/nameutils.cpp:5: included_from: Included from here.
/usr/include/c++/14/bits/stl_algo.h:447:5: note: declared here
#  447 |     any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred)
#      |     ^~~~~~
#  161|           QChar::Script_Han,    QChar::Script_Hangul,    QChar::Script_Cyrillic};
#  162|   
#  163|->     std::any_of(string.cbegin(), string.cend(), [](const QChar &character) {
#  164|           return std::find(scripts.begin(), scripts.end(), character.script()) == scripts.end();
#  165|       });

Error: COMPILER_WARNING (CWE-477): [#def2]
kf6-kirigami-addons-1.4.0-build/kirigami-addons-1.4.0/src/treeview/treeviewplugin.cpp:7: included_from: Included from here.
kf6-kirigami-addons-1.4.0-build/kirigami-addons-1.4.0/src/treeview/treeviewplugin.h: scope_hint: In member function ‘QString TreeViewPlugin::resolveFilePath(const QString&) const’
kf6-kirigami-addons-1.4.0-build/kirigami-addons-1.4.0/src/treeview/treeviewplugin.h:24:23: warning[-Wdeprecated-declarations]: ‘QUrl QQmlExtensionPlugin::baseUrl() const’ is deprecated: Provide a qmldir file to remove the need for calling baseUrl
#   24 |         return baseUrl().toLocalFile() + QLatin1Char('/') + path;
#      |                ~~~~~~~^~
/usr/include/qt6/QtQml/QQmlExtensionPlugin:1: included_from: Included from here.
kf6-kirigami-addons-1.4.0-build/kirigami-addons-1.4.0/src/treeview/treeviewplugin.h:9: included_from: Included from here.
/usr/include/qt6/QtQml/qqmlextensionplugin.h:39:10: note: declared here
#   39 |     QUrl baseUrl() const;
#      |          ^~~~~~~
#   22|       QString resolveFilePath(const QString &path) const
#   23|       {
#   24|->         return baseUrl().toLocalFile() + QLatin1Char('/') + path;
#   25|       }
#   26|       QString resolveFileUrl(const QString &filePath) const

Error: COMPILER_WARNING (CWE-477): [#def3]
kf6-kirigami-addons-1.4.0-build/kirigami-addons-1.4.0/src/treeview/treeviewplugin.h: scope_hint: In member function ‘QString TreeViewPlugin::resolveFileUrl(const QString&) const’
kf6-kirigami-addons-1.4.0-build/kirigami-addons-1.4.0/src/treeview/treeviewplugin.h:28:23: warning[-Wdeprecated-declarations]: ‘QUrl QQmlExtensionPlugin::baseUrl() const’ is deprecated: Provide a qmldir file to remove the need for calling baseUrl
#   28 |         return baseUrl().toString() + QLatin1Char('/') + filePath;
#      |                ~~~~~~~^~
/usr/include/qt6/QtQml/qqmlextensionplugin.h:39:10: note: declared here
#   39 |     QUrl baseUrl() const;
#      |          ^~~~~~~
#   26|       QString resolveFileUrl(const QString &filePath) const
#   27|       {
#   28|->         return baseUrl().toString() + QLatin1Char('/') + filePath;
#   29|       }
#   30|       QStringList m_stylesFallbackChain;

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-12.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namekf6-kirigami-addons-1.4.0-2.fc42
store-results-to/tmp/tmpptqi_z21/kf6-kirigami-addons-1.4.0-2.fc42.tar.xz
time-created2024-11-13 00:50:19
time-finished2024-11-13 00:53:39
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpptqi_z21/kf6-kirigami-addons-1.4.0-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpptqi_z21/kf6-kirigami-addons-1.4.0-2.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9