aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljslogger.cpp
diff options
context:
space:
mode:
authorSami Shalayel <sami.shalayel@qt.io>2025-03-21 12:11:28 +0100
committerSami Shalayel <sami.shalayel@qt.io>2025-03-25 22:54:41 +0100
commitca0348fad24b4eb3ee2843ae2dae4b9e260d650e (patch)
tree71edd34c896ce2bf47d35cfc74af8068d03d5610 /src/qmlcompiler/qqmljslogger.cpp
parent2b720dbe79d8a4a69188f44359dcf44f305b402c (diff)
qmllint: fix setting for alias cycle and unresolved alias
Make sure both have their own setting key, but still support the previous "buggy" setting key. Print a deprecated warning when finding the buggy setting key in a setting file. Task-number: QTBUG-135020 Change-Id: I364e7e41380de43a0883bcf4d3f6cefcf11b6c90 Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljslogger.cpp')
-rw-r--r--src/qmlcompiler/qqmljslogger.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qmlcompiler/qqmljslogger.cpp b/src/qmlcompiler/qqmljslogger.cpp
index b7b5c6153a..e05bf18378 100644
--- a/src/qmlcompiler/qqmljslogger.cpp
+++ b/src/qmlcompiler/qqmljslogger.cpp
@@ -28,10 +28,10 @@ using namespace Qt::StringLiterals;
#define QMLLINT_DEFAULT_CATEGORIES \
X(qmlRequired, "required", "RequiredProperty", "Warn about required properties", QtWarningMsg, \
false, false) \
- X(qmlAliasCycle, "alias-cycle", "PropertyAliasCycles", "Warn about alias cycles", \
+ X(qmlAliasCycle, "alias-cycle", "AliasCycle", "Warn about alias cycles", QtWarningMsg, false, \
+ false) \
+ X(qmlUnresolvedAlias, "unresolved-alias", "UnresolvedAlias", "Warn about unresolved aliases", \
QtWarningMsg, false, false) \
- X(qmlUnresolvedAlias, "unresolved-alias", "PropertyAliasCycles", \
- "Warn about unresolved aliases", QtWarningMsg, false, false) \
X(qmlImport, "import", "ImportFailure", "Warn about failing imports and deprecated qmltypes", \
QtWarningMsg, false, false) \
X(qmlRecursionDepthErrors, "recursion-depth-errors", "ImportFailure", \