Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-25917

M325 missing explanation in doc

    XMLWordPrintable

Details

    • All
    • e1a15b2db504a6f10d6480d81ed34a3cdd39a3c2 (qt-creator/qt-creator/6.0) f686bce68fb2d1e1de66642ce20e59bba25670ba (qt-creator/qt-creator/6.0) 39db18f96870d794004e2d52aa663ea05adf0070 (qt-creator/qt-creator/7.0)

    Description


      the M325 warning appears when doing the comparison in JavaScript.

      warning: Logical value does not depend on actual values (M325)
      

      I searched https://doc.qt.io/qtcreator/creator-checking-code-syntax.html and http://linterrors.com/js.
      there is no explanation to guide the user on how to fix this warning.
      This warning seems caused by referring invisible var(like ListView index)

      Attachments

        1. 3728]T[93CZC%9@10~WDNHK.png
          3728]T[93CZC%9@10~WDNHK.png
          18 kB
        2. image.png
          image.png
          53 kB
        3. image-2021-06-29-14-11-45-748.png
          image-2021-06-29-14-11-45-748.png
          23 kB
        4. image-2021-08-30-10-58-29-337.png
          image-2021-08-30-10-58-29-337.png
          30 kB
        5. image-2021-08-30-11-00-09-699.png
          image-2021-08-30-11-00-09-699.png
          22 kB
        6. image-2021-11-05-13-34-28-909.png
          image-2021-11-05-13-34-28-909.png
          48 kB
        7. image-2021-11-05-13-40-07-712.png
          image-2021-11-05-13-40-07-712.png
          52 kB
        8. image-2021-11-05-13-43-02-853.png
          image-2021-11-05-13-43-02-853.png
          51 kB
        9. image-2021-11-05-14-32-01-973.png
          image-2021-11-05-14-32-01-973.png
          6 kB
        10. image-2022-02-05-01-04-09-608.png
          image-2022-02-05-01-04-09-608.png
          53 kB
        11. logical.png
          logical.png
          71 kB

        Issue Links

          Activity

            People

              cstenger Christian Stenger
              jiu shanheng jiu
              Votes:
              13 Vote for this issue
              Watchers:
              22 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: