diff options
author | Sami Shalayel <[email protected]> | 2025-07-22 16:12:08 +0200 |
---|---|---|
committer | Sami Shalayel <[email protected]> | 2025-08-25 16:10:21 +0000 |
commit | 2bc3f45e82e7175b984288b8ad398d1336224fc1 (patch) | |
tree | 7210d14f4ce0c7b0d2eefc5dee298a923442396e | |
parent | 36216db956096d6cabdb28b08368dd76db92c652 (diff) |
qmllint: don't search for heuristic context properties
Don't search for heuristic context properties in qmllint, to avoid
making qmllint more complicated from a user perspective. Instead,
qmlcontextpropertydump can be used via its CMake target.
Task-number: QTBUG-128232
Change-Id: Ie7553821e6b62c0a89179e8abee2ac7d15647265
Reviewed-by: Ulf Hermann <[email protected]>
-rw-r--r-- | tools/qmllint/main.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/qmllint/main.cpp b/tools/qmllint/main.cpp index bb27ba6ceb..cccecde77f 100644 --- a/tools/qmllint/main.cpp +++ b/tools/qmllint/main.cpp @@ -432,11 +432,9 @@ All warnings can be set to three levels: lintResult = linter.lintModule(filename, silent, useJson ? &jsonFiles : nullptr, qmlImportPaths, resourceFiles); } else { - // TODO: collect root urls here - const QQmlJS::HeuristicContextProperties contextProperties; lintResult = linter.lintFile(filename, nullptr, silent || isFixing, useJson ? &jsonFiles : nullptr, qmlImportPaths, - qmldirFiles, resourceFiles, categories, contextProperties); + qmldirFiles, resourceFiles, categories); } success &= (lintResult == QQmlJSLinter::LintSuccess || lintResult == QQmlJSLinter::HasWarnings); if (success) { |