Class SonarQubePythonIndexer

java.lang.Object
org.sonar.plugins.python.indexer.PythonIndexer
org.sonar.plugins.python.indexer.SonarQubePythonIndexer

public class SonarQubePythonIndexer extends PythonIndexer
  • Field Details

    • SONAR_CAN_SKIP_UNCHANGED_FILES_KEY

      public static final String SONAR_CAN_SKIP_UNCHANGED_FILES_KEY
      Describes if an optimized analysis of unchanged by skipping some rules is enabled. By default, the property is not set (null), leaving SQ/SC to decide whether to enable this behavior. Setting it to true or false, forces the behavior from the analyzer independently of the server.
      See Also:
  • Constructor Details

    • SonarQubePythonIndexer

      public SonarQubePythonIndexer(List<org.sonar.api.batch.fs.InputFile> inputFiles, CacheContext cacheContext, org.sonar.api.batch.sensor.SensorContext context)
  • Method Details

    • buildOnce

      public void buildOnce(org.sonar.api.batch.sensor.SensorContext context)
      Specified by:
      buildOnce in class PythonIndexer
    • computeGlobalSymbols

      public void computeGlobalSymbols(List<org.sonar.api.batch.fs.InputFile> files, org.sonar.api.batch.sensor.SensorContext context)
    • canBePartiallyScannedWithoutParsing

      public boolean canBePartiallyScannedWithoutParsing(org.sonar.api.batch.fs.InputFile inputFile)
      Overrides:
      canBePartiallyScannedWithoutParsing in class PythonIndexer
    • canBeFullyScannedWithoutParsing

      public boolean canBeFullyScannedWithoutParsing(org.sonar.api.batch.fs.InputFile inputFile)
      Overrides:
      canBeFullyScannedWithoutParsing in class PythonIndexer
    • cacheContext

      public CacheContext cacheContext()
      Specified by:
      cacheContext in class PythonIndexer