Select a Delta Analysis StrategyΒΆ

CodeScene has two different strategies for the delta analysis:

  1. Full Scan: The Full Scan will supervise the code health of all files in a change set or pull request. CodeScene will always use the Full Scan for PR integrations to cover all modified content, but for delta analysis requested over the API there is a threshold; if a change set exceeeds the default limit of 50 files, then CodeScene automatically reverts to a Hotspot Scan in order to maintain quick response times. You can override this threshold via environment variables:

    • env variable: DELTA_ANALYSIS__LIMIT_DELTA_SCAN_TO_MAX_FILES

    • system property: delta.analysis_limit.delta.scan.to.max.files

  2. Hotspot Scan: With this strategy, CodeScene limits the delta analysis to files that are identified as hotspots. This means that the most relevant modules are always checked. Non-hotspots will not be analysed for code health decline.