Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.0 Beta2
-
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
For Gerrit Dashboard: QTBUG-111231 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
466351,9 | qmlformat: preserve empty line after comments | dev | qt/qtdeclarative | Status: ABANDONED | -1 | 0 |
470331,8 | qmlformat: change comment handling behavior | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
471819,2 | qmlformat: change comment handling behavior | 6.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |