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

qmlformat for a use in projects and large code bases

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • 6.7
    • None
    • QML: Tooling

    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

        Activity

          People

            qtqmlteam Qt Qml Team User
            max.goldstein Maximilian Goldstein
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: