Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-13867

Raise analysis warning if there are unanalysed C/C++ files

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.5
    • Component/s: Web
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      While indexing files, we'll count how many are related to C/C++. We'll need to hardcode, in the scanner, a list of relevant extensions (c,cpp,h, ..).

      We should not count files that get excluded from the indexing due to any type of exclusions.

      Files are indexed in FileIndexer but we can access indexed files any time later by using InputComponentStore.

      The number should be written in the scanner report. For that, we'll need to introduce a new field in the protobuf format (see scanner_report.proto), probably in the Metadata message or in a new message type.

      To know if it's the CE that's running, we can probably use SonarRuntime.

      In CE, when the scanner report says that there are unanalysed C/C++ files, we will now add a new analysis message. 

        Attachments

          Activity

            People

            Assignee:
            michal.duda Michal Duda (Inactive)
            Reporter:
            michal.duda Michal Duda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: