kf6-kirigami-addons-1.2.1-1.fc41

List of Defects

Error: COMPILER_WARNING (CWE-252): [#def1]
kf6-kirigami-addons-1.2.1-build/kirigami-addons-1.2.1/src/components/nameutils.cpp: scope_hint: In member function ‘bool NameUtils::isStringUnsuitableForInitials(const QString&)’
kf6-kirigami-addons-1.2.1-build/kirigami-addons-1.2.1/src/components/nameutils.cpp:162: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’
#  162 |     std::any_of(string.cbegin(), string.cend(), [](const QChar &character) {
#      |     ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  163 |         return std::find(scripts.begin(), scripts.end(), character.script()) == scripts.end();
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  164 |     });
#      |     ~~          
/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.2.1-build/kirigami-addons-1.2.1/src/components/nameutils.h:7: included_from: Included from here.
kf6-kirigami-addons-1.2.1-build/kirigami-addons-1.2.1/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)
#      |     ^~~~~~
#  160|           QChar::Script_Han,    QChar::Script_Hangul,    QChar::Script_Cyrillic};
#  161|   
#  162|->     std::any_of(string.cbegin(), string.cend(), [](const QChar &character) {
#  163|           return std::find(scripts.begin(), scripts.end(), character.script()) == scripts.end();
#  164|       });

Error: COMPILER_WARNING (CWE-477): [#def2]
kf6-kirigami-addons-1.2.1-build/kirigami-addons-1.2.1/src/treeview/treeviewplugin.cpp:7: included_from: Included from here.
kf6-kirigami-addons-1.2.1-build/kirigami-addons-1.2.1/src/treeview/treeviewplugin.h: scope_hint: In member function ‘QString TreeViewPlugin::resolveFilePath(const QString&) const’
kf6-kirigami-addons-1.2.1-build/kirigami-addons-1.2.1/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.2.1-build/kirigami-addons-1.2.1/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.2.1-build/kirigami-addons-1.2.1/src/treeview/treeviewplugin.h: scope_hint: In member function ‘QString TreeViewPlugin::resolveFileUrl(const QString&) const’
kf6-kirigami-addons-1.2.1-build/kirigami-addons-1.2.1/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-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-13.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namekf6-kirigami-addons-1.2.1-1.fc41
store-results-to/tmp/tmpfcja57rv/kf6-kirigami-addons-1.2.1-1.fc41.tar.xz
time-created2024-07-03 14:12:58
time-finished2024-07-03 14:16:14
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpfcja57rv/kf6-kirigami-addons-1.2.1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpfcja57rv/kf6-kirigami-addons-1.2.1-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9