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

Set cmake SKIP_LINTING property on source code generated by qt_add_qml_module

    XMLWordPrintable

Details

    • 3ad691586 (6.9), d61c78427 (6.9), d24842d28 (dev), 978150350 (dev), 8974c1c55 (dev), 8e9e23b89 (dev), 0affecc3b (6.10), e6b08e785 (6.10), 8e15af9d3 (6.10), 7dfa67d3d (6.9), 3fe7945a8 (6.9), 97b2ea585 (6.9), d1aa25b09 (6.10), e90d1370e (6.9)

    Description

      qt_add_qml_module in qtdeclarative/src/qml/Qt6QmlMacros.cmake should set the cmake SKIP_LINTING source property on all of the source code files it generates. It doesn't make sense to run linting tools against this generated code.
      https://cmake.org/cmake/help/latest/prop_sf/SKIP_LINTING.html

      Potential patch for 6.7.0 Qt6QmlMacros.cmake attached

      Attachments

        1. skiplinting.diff
          2 kB
          Andrew Wason
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lecris Cristian Le
            rectalogic Andrew Wason
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: