diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2023-02-06 08:08:05 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2023-02-07 19:23:12 +0100 |
commit | 5c594515f609b2c3d8f5dad9366bf8bdff870601 (patch) | |
tree | 409189f430315267b24c9d342954cf5d53c1cdce /tools/qmllint/main.cpp | |
parent | d15efae7e162173be7276c33f27bdd11851ee0ef (diff) |
qmllint: Provide import paths and resource files when linting modules
Those are just as important for modules as for single files.
Pick-to: 6.5
Change-Id: I201d62c61988abc2dfba6300a1cfc355203fec75
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Diffstat (limited to 'tools/qmllint/main.cpp')
-rw-r--r-- | tools/qmllint/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/qmllint/main.cpp b/tools/qmllint/main.cpp index 5c35c19928..e1c0e78fe3 100644 --- a/tools/qmllint/main.cpp +++ b/tools/qmllint/main.cpp @@ -363,7 +363,8 @@ All warnings can be set to three levels: QQmlJSLinter::LintResult lintResult; if (parser.isSet(moduleOption)) { - lintResult = linter.lintModule(filename, silent, useJson ? &jsonFiles : nullptr); + lintResult = linter.lintModule(filename, silent, useJson ? &jsonFiles : nullptr, + qmlImportPaths, resourceFiles); } else { lintResult = linter.lintFile(filename, nullptr, silent || isFixing, useJson ? &jsonFiles : nullptr, qmlImportPaths, |