From b1afde8ada7959b29acb4ac0fae87d7a8ae8aa08 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 2 Oct 2020 10:27:38 +0200 Subject: qmllint: Ignore grouped properties again We cannot handle those, yet. Add tests that prove correct grouped properties pass and incorrect ones are expected to fail at causing qmllint to fail for now. Task-number: QTBUG-87116 Change-Id: I0aeed15d262e2c6226e27d5d92890c5385a38936 Reviewed-by: Fabian Kosmale --- tools/qmllint/findwarnings.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tools/qmllint') diff --git a/tools/qmllint/findwarnings.cpp b/tools/qmllint/findwarnings.cpp index 0131921928..fb69756415 100644 --- a/tools/qmllint/findwarnings.cpp +++ b/tools/qmllint/findwarnings.cpp @@ -831,14 +831,13 @@ bool FindWarningVisitor::visit(QQmlJS::AST::UiObjectDefinition *uiod) name += id->name.toString() + QLatin1Char('.'); name.chop(1); - enterEnvironment(ScopeType::QMLScope, name); - m_currentScope->resolveTypes(m_rootScopeImports.importedQmlNames); - importExportedNames(m_currentScope); - if (name.isLower()) return false; // Ignore grouped properties for now + m_currentScope->resolveTypes(m_rootScopeImports.importedQmlNames); + importExportedNames(m_currentScope); + if (name.endsWith("Connections")) { QString target; auto member = uiod->initializer->members; -- cgit v1.2.3