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

qmlformat does not preserve whitespace in comments and whitespace following header comments

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.1, 6.5, 6.6.0
    • 6.5.0 Beta2
    • QML: Tooling
    • None
    • b5274d073 (dev), 0e200eef8 (6.5)

    Description

      Currently qmlformat doesn't respect REUSE-compliant SPDX header formatting. Ideally, such headers look something like this:

      // SPDX-FileCopyrightText: 2023 Joe Smith
      //
      // SPDX-License-Identifier: GPL-3.0-or-later 
      
      import QtQuick

      (In this case, the import statement shows where the actual code begins.)

      However, qmlformat will format the above to look like this:

      // SPDX-FileCopyrightText: 2023 Joe Smith
      // SPDX-License-Identifier: GPL-3.0-or-later
      import QtQuick

      Ideally, qmlformat would recognize and respect SPDX headers when formatting code.

      Attachments

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

        Activity

          People

            semih.yavuz Semih Yavuz
            lorendb Loren Burkholder
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes