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

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.7.0
    • None
    • f654519c7 (dev), 6865c21e4 (dev), 3ad691586 (6.9), d61c78427 (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
        For Gerrit Dashboard: QTBUG-125077
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes