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

qmlformat: Distinguish between options that control I/O vs. options that control a QML document's format

    XMLWordPrintable

Details

    Description

      qmlformat supports 2 broad categories of options:

      A) Options that control how qmlformat reads inputs and writes outputs (examples: --files, --verbose, --help)
      B) Options that control how qmlformat lays out the contents of a QML document (examples: --tabs, --indent-width, --normalize)

      The .qmlformat.ini file is only concerned with Category B options.

      It would be helpful to split qmlformat --help as well as https://doc.qt.io/qt-6/qtqml-tooling-qmlformat.html#options into the 2 sub-categories.

       

      (Background context: We received a request to add the equivalent of qmlformat --inplace into .qmlformat.ini. Categorizing the options would help to clarify why this request doesn't make sense)

      Attachments

        Issue Links

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

          Activity

            People

              qtqmlteam Qt Qml Team User
              skoh-qt Sze Howe Koh
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes