XMLWordPrintable

    • Icon: Technical task Technical task
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • 6.10
    • QML: Tooling
    • None

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            sami.shalayel Sami Shalayel
            sami.shalayel Sami Shalayel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes