FX&MaterialShowroom: Add a configuration file for qmlllint

The example is currently in a state where qmllint produces almost no
warnings, and should generally be kept in such a state.

Thus, add a configuration file that sets the warning limit to "0", such
that running the all_qmllint target for the example will fail if any
warning is produced, with the additional strictness hopefully helping
keeping the example almost warning-free.

Some warnings were disabled, instead of fixed, due to a compatibility
issue with Qt Design Studio, but should be fixed if that incompatibility
is resolved.

Pick-to: 6.10
Fixes: QTBUG-138170
Change-Id: Ibbbf17892f6be1b7b549718df16036d6a57c3022
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
This commit is contained in:
Luca Di Sera 2025-08-04 17:13:17 +02:00
parent d0b655dda8
commit 6749ea650e
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
[General]
MaxWarnings=0
[Warnings]
# Qt Design Studio .ui.qml files do not support non-target based
# PropertyChanges instances.
# qmllint, on the other hand, warns about them.
# To be compatible with Qt Design Studio we currently disable this
# warning, considering that there are many instances of it being
# triggered in ui.qml files.
Quick.PropertyChangesParsed=disable