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

qmlformat: Read files from file

XMLWordPrintable

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

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes