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

qmlformat interferes with comment block at top of QML file (in some cases)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • 6.1
    • 5.15.0
    • QML: Tooling
    • All

    Description

      My testing was done with qmlformat version: qtdeclarative 7064e09e3a 2020-05-29

      I have a file that previously began as:

      ```

      // Copyright (c) 2020, 219 Design, LLC
      // See LICENSE.txt
      // https://www.219design.com
      // Software | Electrical | Mechanical | Product Design
      import QtQuick 2.12
      import QtQuick.Controls 2.12
      import QtGraphicalEffects 1.12
      import QtQuick.Controls.Universal 2.2
      import libstyles 1.0
      ```

      And for reasons that are not apparent to me, qmlformat reordered those line as follows:

      ```
      import QtGraphicalEffects 1.12
      // Copyright (c) 2020, 219 Design, LLC
      // See LICENSE.txt
      // https://www.219design.com
      // Software | Electrical | Mechanical | Product Design
      import QtQuick 2.12
      import QtQuick.Controls 2.12
      import QtQuick.Controls.Universal 2.2
      import libstyles 1.0
      ```

      Attachments

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

        Activity

          People

            max.goldstein Maximilian Goldstein
            kh-219design Kelly Heller
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes