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 <ulf.hermann@qt.io>
This commit is contained in:
parent
36216db956
commit
2bc3f45e82
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue