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

Make qmlformat more usable

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 6.2
    • Component/s: QML: Tooling
    • Labels:

      Description

      There are several issues with qmlformat that can prevent it from being used in projects, especially in large code bases:

      • Lack of customizability thus making the tool useless if you require non default formatting
        • No support for indents that aren't 4 spaces
        • Placement of braces is not customizable
      • All formatting options need to be specified on the command line instead of being able to just format a file based on a .clang-format like file
      • The current way parts of the QML file are restructured require aggresive "attachment" of commands to nodes which often causes comments to be moved in unexpected ways

      This task serves to track individual fixes to these issues.

        Attachments

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

          Activity

            People

            Assignee:
            max.goldstein Maximilian Goldstein
            Reporter:
            max.goldstein Maximilian Goldstein
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes