From ac5c765f29106837da717ca7c2e1f266f39d5843 Mon Sep 17 00:00:00 2001 From: Maximilian Goldstein Date: Fri, 24 Apr 2020 15:10:53 +0200 Subject: qmllint: Add flags for toggling warnings Enables all warnings by default and makes it possible to toggle individual ones using command line flags. Change-Id: Ie55f32f646fd9422313977969f9f00b59ee9ad99 Reviewed-by: Fabian Kosmale --- tests/auto/qml/qmllint/tst_qmllint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto/qml/qmllint/tst_qmllint.cpp') diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp index e7088d7cf5..235748f55e 100644 --- a/tests/auto/qml/qmllint/tst_qmllint.cpp +++ b/tests/auto/qml/qmllint/tst_qmllint.cpp @@ -218,7 +218,7 @@ QString TestQmllint::runQmllint(const QString &fileToLint, bool shouldSucceed) { auto qmlImportDir = QLibraryInfo::location(QLibraryInfo::Qml2ImportsPath); QStringList args; - args << QStringLiteral("-U") << testFile(fileToLint) + args << testFile(fileToLint) << QStringLiteral("-I") << qmlImportDir << QStringLiteral("-I") << dataDirectory() << QStringLiteral("--silent"); -- cgit v1.2.3