Uploaded image for project: 'SonarLint Core Library'
  1. SonarLint Core Library
  2. SLCORE-129

Lazily generate metadata for input files

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5
    • Component/s: Core
    • Labels:
      None

      Description

      Files metadata (lines offsets, ...) are computed upfront.

      When using analyze all files, it leads to try to process binary files or unsupported languages.

      Invalid character encountered in file '/home/julien/Prog/Projects/sonar-eclipse/org.sonarlint.eclipse.ui/icons/popup/notification-close.gif' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
      

      Also, when a big file is opened in the IDE "on the fly", this is useless to compute metadata if no code analyzers will actually process the file.

      Like in the SQ Scanner, we should compute metadata lazily.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              julien.henry Julien Henry
              Reporter:
              julien.henry Julien Henry
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: