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

qmllint: Warn about JS files which are not marked with .pragma library

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • 6.x
    • None
    • QML: Tooling

    Description

      If a JS file is used in QML, it gets instantiated once per component usage, unless it is marked with .pragma library. As this is wasteful, and those js files often are pure library files, we'd like to warn users about this.

       

      However, we need to investigate how we can avoid false positive warnings, and/or how to suppress the warning.

      Attachments

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

        Activity

          People

            fabiankosmale Fabian Kosmale
            fabiankosmale Fabian Kosmale
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes