Fixed findings

List of Findings

Error: COMPILER_WARNING (CWE-477): [#def1]
ktexteditor-6.25.0/src/mode/katemodeconfigpage.cpp: scope_hint: In member function ‘void ModeConfigPage::showMTDlg()’
ktexteditor-6.25.0/src/mode/katemodeconfigpage.cpp:295:97: warning[-Wdeprecated-declarations]: ‘KMimeTypeChooserDialog::KMimeTypeChooserDialog(const QString&, const QString&, const QStringList&, const QString&, QWidget*)’ is deprecated: Since 6.24. Use the other KMimeTypeChooserDialog constructor instead
#  295 |     KMimeTypeChooserDialog d(i18n("Select Mime Types"), text, list, QStringLiteral("text"), this);
#      |                                                                                                 ^
/usr/include/KF6/KWidgetsAddons/KMimeTypeChooser:1: included_from: Included from here.
ktexteditor-6.25.0/src/mode/katemodeconfigpage.cpp:20: included_from: Included from here.
/usr/include/KF6/KWidgetsAddons/kmimetypechooser.h:164:5: note: declared here
#  164 |     KMimeTypeChooserDialog(const QString &title,
#      |     ^~~~~~~~~~~~~~~~~~~~~~
#  293|           i18n("Select the MimeTypes you want for this file type.\nPlease note that this will automatically edit the associated file extensions as well.");
#  294|       QStringList list = ui->edtMimeTypes->text().split(QRegularExpression(QStringLiteral("\\s*;\\s*")), Qt::SkipEmptyParts);
#  295|->     KMimeTypeChooserDialog d(i18n("Select Mime Types"), text, list, QStringLiteral("text"), this);
#  296|       if (d.exec() == QDialog::Accepted) {
#  297|           // do some checking, warn user if mime types or patterns are removed.

Error: COMPILER_WARNING (CWE-457): [#def2]
ktexteditor-6.25.0/src/vimode/registers.h:45:12: warning[-Wmaybe-uninitialized]: ‘regPair.opMode’ may be used uninitialized
#   45 |     struct Register {
#      |            ^~~~~~~~
ktexteditor-6.25.0/src/vimode/registers.cpp: scope_hint: In member function ‘KateVi::Registers::getRegister(QChar const&) const’
ktexteditor-6.25.0/src/vimode/registers.cpp:103:14: note: ‘regPair’ declared here
#  103 |     Register regPair;
#      |              ^~~~~~~
#   43|   
#   44|   private:
#   45|->     struct Register {
#   46|           QString contents;
#   47|           OperationMode opMode;

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.97.1
diffbase-analyzer-version-cppcheck2.21.1
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-113.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namekf6-ktexteditor-6.28.0-2.fc45
diffbase-store-results-to/tmp/tmpqu748on0/kf6-ktexteditor-6.28.0-2.fc45.tar.xz
diffbase-time-created2026-08-03 16:39:40
diffbase-time-finished2026-08-03 16:52:31
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpqu748on0/kf6-ktexteditor-6.28.0-2.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpqu748on0/kf6-ktexteditor-6.28.0-2.fc45.src.rpm'
diffbase-tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-113.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namekf6-ktexteditor-6.25.0-1.fc44
store-results-to/tmp/tmpg73h1emr/kf6-ktexteditor-6.25.0-1.fc44.tar.xz
time-created2026-08-03 16:25:57
time-finished2026-08-03 16:39:31
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpg73h1emr/kf6-ktexteditor-6.25.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpg73h1emr/kf6-ktexteditor-6.25.0-1.fc44.src.rpm'
tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9