Repository navigation
Releases
Releases · qarmin/qml_static_analyzer
0.4.1
Version 0.4.1 - 13.04.2026
- Errors for
UnknownMemberAccessandMemberAssignmentTypeMismatchnow point to the exact assignment line instead of the function header - Improved parser: multi-line expressions (open parentheses spanning multiple lines) now correctly collect
used_names,declared_locals, andmember_assignmentsfrom every continuation line - RHS names in member assignments (e.g.
obj.x = bad + 1) are now checked for undefined identifiers - Arrow-function parameters support destructuring:
({prop}),([a, b])patterns are correctly extracted as local bindings for-loop object-destructuring (for (const {key: alias} of ...)) is now supportedtry_parse_member_assignmentcorrectly marks multi-token RHS asTooComplexinstead of misclassifying themMemberAssignmentstores the source line number for accurate error reporting;PartialEqintentionally ignores it so snapshots remain stable
0.4.0
Version 0.4.0 - 10.04.2026
- Added
UnknownQmlMembererror: member access on known QML child ids (e.g.childId.nonExistentProp) is now validated in function bodies, property declarations, and inline assignments - Added
UnknownConnectionsTargeterror:Connections { target: unknownThing }is now caught when the target is not in scope - Improved
Connectionsvalidation: signal handler names are checked against the actual target's signals/properties; opaque or unresolved targets allow all declared handlers - Added cross-file id member access validation via
parent_id_types: element ids declared in parent files are now visible for member-access checks in child files - Auto-generated
<prop>Changedsignals are now recognised as valid identifiers in all contexts parentnow resolves to the actual parent element type for direct children, enablingparent.xxxvalidation without false positives- JS-block property value bodies (
text: { if (foo) … }) are now checked for undefined names - Qt type methods and signals are added to file scope, preventing false
UndefinedNameerrors for callable Qt members file_membersnow includes function names from QML files, improving cross-file scope resolution- Refactored source:
checker.rssplit intochecker/mod.rs,checker/errors.rs,checker/helpers.rs;checksubcommand moved tocmd_check.rs - CLI: added
--version/-Vand--help/-hflags; version printed on everycheckrun - Release profile hardened:
lto = "fat",codegen-units = 1,overflow-checks = true
0.3.0
- Added support for aliased module imports (e.g.
import QtQuick.Controls as QQC2) — aliased types are now resolved correctly without falseUnknownTypeerrors - Improved parser: handles
async function, dotted property assignments (icon.source), multi-line signal handlers, and},/};as valid block closers - Extended C++ member validation to cover property declaration expressions, not only function bodies
0.2.0
- Fixed false positives: QML ids are now resolved file-wide, Qt namespace qualifiers (e.g.
ListView.Contain) and inline type instantiations (e.g.Rotation { … }) are no longer flagged as undefined - Improved error locations: errors inside function bodies now point to the exact line instead of the function header
- Extended type-mismatch detection and
Q_PROPERTY MEMBERbacking fields are now recognized in C++ headers - Added Qt 6.11.0 support for built-in type generation;
checkvalidates--path/--configbefore running - Added test project, entirelly managed by AI