Details
-
Bug
-
Resolution: Invalid
-
P1: Critical
-
None
-
6.8.0 Beta3
-
None
-
4f6519eed (dev), e9affd88a (6.8)
Description
When running this simple QML example against qmllint, the return code differs between Qt 6.7.2 and Qt 6.8.0 Beta 3.
import QtQuick Item { id: root readonly property int foo: 1337 Text { text: "Some text %1".arg(foo) } }
Both detect the issue:
Warning: mweQmllint.qml:9:28: Unqualified access [unqualified] text: "Some text %1".arg(foo) ^^^ Info: foo is a member of a parent element. You can qualify the access with its id to avoid this warning. text: "Some text %1".arg(root.foo) ^^^^^
Qt 6.7.2 returns 255 whereas Qt 6.8.0 Beta 3 returns 0. Checked with
qmllint mweQmllint.qml; echo $?
This results in problems if qmllint is run as part of unittests.
Attachments
Issue Links
- relates to
-
QTBUG-133642 qmllint: Can't set maxwarnings (or other arguments) from CMake
-
- Reported
-
-
QTBUG-115856 Don't let qmllint warnings fail the build
-
- Closed
-
For Gerrit Dashboard: QTBUG-128221 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
603028,6 | Fix "MaxWarnings" settings in .qmllint.ini | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
603132,2 | Fix "MaxWarnings" settings in .qmllint.ini | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |