Details
-
User Story
-
Resolution: Unresolved
-
P2: Important
-
None
Description
Since Qt 6.4, qmllint features a plugin system, and has e.g. a plugin to check for common mistakes in QtQuick. While this is already helpful, many users create their own components (e.g. KDE's Kirigami), often with their own best practice guides.
It is unrealistic to integrate checks for those custom features into the core qmllint application; however, by stabilizing the existing plugin system and making it public, we can allow those users to create their own checks.
This will then subsequently help any users of those custom frameworks to avoid making mistakes, and consequently lead to a better developer experience.
To enable users to create their own plugins, we need to
- avoid exposing internal types in the public API (instead: expose PIMPLed wrappers),
- document the API and
- provide one reference example on how to create such a plugin.
Attachments
Issue Links
- depends on
-
QTBUG-102081 Improve the Qml Static Analysis system into a proper API
-
- Closed
-
-
QTBUG-102276 Create abstraction layer for QQmlJSScope
-
- Closed
-
- resulted in
-
QTBUG-106068 Expose qmllint plugin API to QML
-
- Reported
-