Details
-
Technical task
-
Resolution: Unresolved
-
P2: Important
-
None
Description
Currently, qmllint does not warn for assignment inside of if conditions, like
if (x = 3) { ... }
It should emit a warning when it finds an assignment inside an if-condition, except if that assignment is inside and extra pair of braces, like:
if ((x = 3)) { ... }
Note: The QtC code model does warn about this use case.
Attachments
Issue Links
- is required for
-
QTBUG-119890 qmllint warnings: reach feature parity with QtCreator
-
- Reported
-