Qt Creator: How to explicitly run qmllint?
-
I have a cmake project with integrated qmllint. That means, if I e.g. rebuild, I will get all qmllint warnings.
How can I run qmllint explicitly if I do not want to rebuild, but only see any remaining qmllint warnings?
-
I have a cmake project with integrated qmllint. That means, if I e.g. rebuild, I will get all qmllint warnings.
How can I run qmllint explicitly if I do not want to rebuild, but only see any remaining qmllint warnings?
@Asperamanca Hi, did you ever figure this out?
-
Hi,
Based one the qt_add_qml_module documentation, linting targets are created that you can call.
[Edit aha_1980: Fixed typo]
-
Hi,
Based one the qt_add_qml_module documentation, linting targets are created that you can call.
[Edit aha_1980: Fixed typo]
@SGaist Actually, while my questions was specifically targeted at qmllint (and your answer for that is correct), what I actually meant were all QML related warnings. They come from different tools (e.g. qmllint, but also qmlsc). So getting all the QML-related warnings without a rebuild is actually quite complicated: You have to delete the corresponding generated QML module files in the build folder to force re-generating them.
-
@SGaist Actually, while my questions was specifically targeted at qmllint (and your answer for that is correct), what I actually meant were all QML related warnings. They come from different tools (e.g. qmllint, but also qmlsc). So getting all the QML-related warnings without a rebuild is actually quite complicated: You have to delete the corresponding generated QML module files in the build folder to force re-generating them.
@Asperamanca isn't that the role of the additional generated targets ? You can invoke them directly.