diff options
author | Maximilian Goldstein <max.goldstein@qt.io> | 2022-03-21 14:13:08 +0100 |
---|---|---|
committer | Maximilian Goldstein <max.goldstein@qt.io> | 2022-04-05 14:06:59 +0200 |
commit | 55c7f1ad136e1c4baa2329837b043b71240e397f (patch) | |
tree | 098ffc2283b0bb27f700e57880b726d3711ad994 /tools/qmllint/main.cpp | |
parent | 7c9276d38b311042235a476e7421b64549b43413 (diff) |
qmllint: Implement QtQuick plugin
This plugin is meant to contain all the linting logic that is specific
to QtQuick. For now it only contains a pass that verifies that layout
items don't use anchors.
Original-patch-by: Fabian Kosmale <fabian.kosmale@qt.io>
Change-Id: Ie75351442596c9c42ae05ab11b3156eff4e56ad5
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@qt.io>
Diffstat (limited to 'tools/qmllint/main.cpp')
-rw-r--r-- | tools/qmllint/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/qmllint/main.cpp b/tools/qmllint/main.cpp index 8fd4d9d2a1..f679b70ab4 100644 --- a/tools/qmllint/main.cpp +++ b/tools/qmllint/main.cpp @@ -41,6 +41,7 @@ #include <QtCore/qjsonarray.h> #include <QtCore/qjsondocument.h> #include <QtCore/qscopeguard.h> +#include <QtCore/qplugin.h> #if QT_CONFIG(commandlineparser) #include <QtCore/qcommandlineparser.h> @@ -52,6 +53,10 @@ constexpr int JSON_LOGGING_FORMAT_REVISION = 3; +#ifdef PLUGIN_QUICK_AVAILABLE +Q_IMPORT_PLUGIN(QmlLintPluginQuick) +#endif + int main(int argv, char *argc[]) { qSetGlobalQHashSeed(0); |