aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmllint/main.cpp
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2021-11-23 15:52:44 +0100
committerMaximilian Goldstein <max.goldstein@qt.io>2021-11-25 10:03:46 +0100
commitff8139d23cf16118f3527aebd29e0667653c728c (patch)
treeb75f80f7f9f6e34fd59f6797e7759549af92ecb5 /tools/qmllint/main.cpp
parent9e54eba64d75d3bc6e39a49eac7b68d57bf113c0 (diff)
qmllint: Expand qmllint library API
The API now allows for specifying the file contents yourself for either on-the-fly editing or if you have your own caching scheme. It's now also possible to access the logger directly in order to read diagnostic messages instead of structured JSON output. Change-Id: I4eb8440c7b25068cd09f28a5f3cbd0a318774522 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@qt.io>
Diffstat (limited to 'tools/qmllint/main.cpp')
-rw-r--r--tools/qmllint/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/qmllint/main.cpp b/tools/qmllint/main.cpp
index b7b64f0b2b..652f6ea83a 100644
--- a/tools/qmllint/main.cpp
+++ b/tools/qmllint/main.cpp
@@ -266,8 +266,8 @@ All warnings can be set to three levels:
const auto arguments = app.arguments();
for (const QString &filename : arguments) {
#endif
- success &= linter.lintFile(filename, silent, useJson ? &jsonFiles : nullptr, qmlImportPaths,
- qmltypesFiles, resourceFiles, options);
+ success &= linter.lintFile(filename, nullptr, silent, useJson ? &jsonFiles : nullptr,
+ qmlImportPaths, qmltypesFiles, resourceFiles, options);
}
if (useJson) {