From 2bc3f45e82e7175b984288b8ad398d1336224fc1 Mon Sep 17 00:00:00 2001 From: Sami Shalayel Date: Tue, 22 Jul 2025 16:12:08 +0200 Subject: [PATCH] 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 --- tools/qmllint/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 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) {