Summary: | Check that the name of the types exported to QML with qmlRegisterType starts uppercase | ||
---|---|---|---|
Product: | [Developer tools] clazy | Reporter: | martonmiklos <martonmiklosqdev> |
Component: | general | Assignee: | Sergio Martins <smartins> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | smartins |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | All | ||
Latest Commit: | https://commits.kde.org/clazy/90ef5de73c8cb09eda1480a4930450e243abe6de | Version Fixed In: | |
Sentry Crash Report: |
Description
martonmiklos
2018-11-13 19:43:39 UTC
good idea Thinking this should be implemented in Qt instead, with a static-assert Git commit 90ef5de73c8cb09eda1480a4930450e243abe6de by Sergio Martins. Committed on 18/11/2018 at 19:58. Pushed by smartins into branch 'master'. New check: lowercase-qml-type-name Warns when QML types registered with qmlRegisterType() or qmlRegisterUncreatableType() don't start with uppercase. It's required by the engine. M +1 -0 Changelog M +1 -0 CheckSources.cmake M +1 -0 README.md M +6 -1 checks.json A +4 -0 docs/checks/README-lowercase-qml-type-name.md M +1 -0 readmes.cmake M +2 -0 src/Checks.h A +69 -0 src/checks/level0/lowercase-qml-type-name.cpp [License: LGPL (v2+)] A +38 -0 src/checks/level0/lowercase-qml-type-name.h [License: LGPL (v2+)] A +7 -0 tests/lowercase-qml-type-name/config.json A +11 -0 tests/lowercase-qml-type-name/main.cpp [License: UNKNOWN] * A +1 -0 tests/lowercase-qml-type-name/main.cpp.expected The files marked with a * at the end have a non valid license. Please read: https://community.kde.org/Policies/Licensing_Policy and use the headers which are listed at that page. https://commits.kde.org/clazy/90ef5de73c8cb09eda1480a4930450e243abe6de |