aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2022-05-02 16:10:12 +0200
committerMaximilian Goldstein <max.goldstein@qt.io>2022-05-04 13:46:02 +0200
commita2e0db631e35b6bffe43b3da61bb836dc57c2e57 (patch)
tree02e3b59884196359cba11a10f13068d87e82e0b1 /tools
parentf8a2f63f5c872fca1dafdf98069a3971307b5352 (diff)
qmlls/qmllintsuggestions: Use qmllint plugins
Previously they were disabled. We should always enable them to allow for better coverage. We might want to eventually add a switch to disable them though. Change-Id: I9b88ac34a244f52cc888f198af51de3548e11051 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tools')
-rw-r--r--tools/qmlls/qmllintsuggestions.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/qmlls/qmllintsuggestions.cpp b/tools/qmlls/qmllintsuggestions.cpp
index d858d875e0..26b42d97fd 100644
--- a/tools/qmlls/qmllintsuggestions.cpp
+++ b/tools/qmlls/qmllintsuggestions.cpp
@@ -172,7 +172,6 @@ void QmlLintSuggestions::diagnose(const QByteArray &url)
QStringList imports = m_codeModel->buildPathsForFileUrl(url);
imports.append(QLibraryInfo::path(QLibraryInfo::QmlImportsPath));
// add m_server->clientInfo().rootUri & co?
- bool useAbsolutePath = false;
bool silent = true;
QString filename = doc.canonicalFilePath();
fileContents = doc.field(Fields::code).value().toString();
@@ -180,7 +179,7 @@ void QmlLintSuggestions::diagnose(const QByteArray &url)
QStringList resourceFiles;
QMap<QString, QQmlJSLogger::Option> options;
- QQmlJSLinter linter(imports, {}, useAbsolutePath);
+ QQmlJSLinter linter(imports);
linter.lintFile(filename, &fileContents, silent, nullptr, imports, qmltypesFiles,
resourceFiles, options);