Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-117300

qmllint does not warn about enum with the same name as their value

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • 6.8
    • 6.6
    • QML: Tooling
    • None

    Description

      qmllint does not warn about the definitions of enums like following one

       

       enum Hello { World, Worldy, Worldo, Hello }

      This is confusing because the user might confuse Hello (the enum key) with Hello (the name of the enum). See the output of the attached project for an example, where someItem.World is an enum key while someItem.Hello is not an enum key.

       

      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