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

Define break values to limit amount of unused data on files

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Scanner
    • Labels:
      None
    • Edition:
      Community

      Description

      Some corner-cases break analysis or server whereas it does not make sense to support them :

      • file with millions of lines
      • a line with thousands of symbol references / highlighted tokens
      • a line or a file implied in thousands of duplications
      • file with dozens of thousands issues

      Side-effects are hard to investigate. For example the second case makes ES indexing crash with out-of-memory error.
      We always think that it can never occur. But it can.

      Break values must be defined to limit the number of information stored on the file. A warning is logged but analysis does not fail :

      • keep max 100 duplications implied on a block (SONAR-6000)
      • keep max 100 clone groups implied on a file (SONAR-6000)
      • keep max 1'000 symbols per line
      • max 200'000 lines per file
      • max ? issues per file (Fabrice Bellingard)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              simon.brandhof Simon Brandhof (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: