[education/rkward] rkward/autotests: Silence clazy false positive

Thomas Friedrichsmeier null at kde.org
Sun Jul 16 15:24:15 BST 2023


Git commit 741244994a1ec756d13c97282bfb0aeb61fdd7bb by Thomas Friedrichsmeier.
Committed on 16/07/2023 at 14:24.
Pushed by tfry into branch 'master'.

Silence clazy false positive

M  +1    -1    rkward/autotests/core_test.cpp

https://invent.kde.org/education/rkward/-/commit/741244994a1ec756d13c97282bfb0aeb61fdd7bb

diff --git a/rkward/autotests/core_test.cpp b/rkward/autotests/core_test.cpp
index be25be0c3..d37e0ed8f 100644
--- a/rkward/autotests/core_test.cpp
+++ b/rkward/autotests/core_test.cpp
@@ -243,7 +243,7 @@ private slots:
 		QStringList output;
 		QRegularExpression extractnumber("\\d\\d\\d");
 		auto callback = [&output, extractnumber](RCommand *command) {
-			auto res = extractnumber.match(command->fullOutput());
+			auto res = extractnumber.match(command->fullOutput()); // clazy:exclude=use-static-qregularexpression - TODO: apparently false positive in clazy?
 			QVERIFY(res.hasMatch());
 			output.append(res.captured());
 		};


More information about the rkward-tracker mailing list