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

qmlformat: Read files from file

    XMLWordPrintable

Details

    • User Story
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.0
    • 5.15.0
    • QML: Tooling
    • d48b87450327e710f7b0a843627624aa67cae116 (qt/tqtc-qtdeclarative/6.0)

    Description

      We want to format all of our files at once and check that on correct formatting on CI. It would be helpful for our buildsystem to generate a "file" with all qml files as content.

      This avoids a too large cmdline with all files as parameter as it is limited.

      We use that mechanism for uncrustify:

      /usr/bin/uncrustify -c uncrustify.cfg --replace --no-backup -q -F ./formatting.files
      
      $ uncrustify --help
       -F FILE      : Read files to process from FILE, one filename per line (- is stdin).
      ...
      

      https://github.com/uncrustify/uncrustify

      Attachments

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

        Activity

          People

            max.goldstein Maximilian Goldstein
            misery André Klitzing
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes