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

qmlformat for a use in projects and large code bases

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.11
    • None
    • QML: Tooling

      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.

        For Gerrit Dashboard: QTBUG-86409
        # Subject Branch Project Status CR V

            semih.yavuz Semih Yavuz
            max.goldstein Maximilian Goldstein
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change