diff options
| author | Sami Shalayel <sami.shalayel@qt.io> | 2025-04-25 12:24:11 +0200 |
|---|---|---|
| committer | Olivier De Cannière <olivier.decanniere@qt.io> | 2025-05-16 16:59:53 +0200 |
| commit | 76a29eee52d548c02fc5e70981a0044adf755ca4 (patch) | |
| tree | d2a484014915b67a322034afd690b761d632dcfe /src/qmlcompiler/qqmljslogger.cpp | |
| parent | 138889eab042fda149e13ed1d2c86d543da003d0 (diff) | |
qmllint: implement WarnComma
Warn when comma expressions are used outside of for-loops.
Task-number: QTBUG-129307
Change-Id: Ic86bf3af7f122f73b70e18c728c72f64c355f982
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljslogger.cpp')
| -rw-r--r-- | src/qmlcompiler/qqmljslogger.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljslogger.cpp b/src/qmlcompiler/qqmljslogger.cpp index c729a623f5..a410d40615 100644 --- a/src/qmlcompiler/qqmljslogger.cpp +++ b/src/qmlcompiler/qqmljslogger.cpp @@ -36,6 +36,8 @@ using namespace Qt::StringLiterals; "Warn if attached types from parent components aren't reused. This is handled by the " \ "QtQuick lint plugin. Use Quick.AttachedPropertyReuse instead.", \ QtCriticalMsg, true, false) \ + X(qmlComma, "comma", "Comma", "Warn about using comma expressions.", QtWarningMsg, false, \ + false) \ X(qmlCompiler, "compiler", "CompilerWarnings", "Warn about compiler issues", QtWarningMsg, \ true, false) \ X(qmlDeferredPropertyId, "deferred-property-id", "DeferredPropertyId", \ |
