XMLWordPrintable

Details

    • Technical task
    • Resolution: Unresolved
    • P2: Important
    • 6.9
    • QML: Tooling
    • 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

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

          Activity

            People

              qtqmlteam Qt Qml Team User
              sami.shalayel Sami Shalayel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes