diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-02 10:27:38 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-02 13:21:09 +0200 |
commit | b1afde8ada7959b29acb4ac0fae87d7a8ae8aa08 (patch) | |
tree | 32fb1e8916d28e0c03f16b71b312cf774959394b /tools | |
parent | 45594322fe91eadcd9b2d7b1d76c1a6662bc1472 (diff) |
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 <fabian.kosmale@qt.io>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qmllint/findwarnings.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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; |