.deepsource.toml

This file must be present at the said location for analysis to be run.

The configuration is written in the TOML format.

version

  • Type: Integer
  • Presence: mandatory
  • Description: The version property is required and must be set to 1, which is the only supported version at the moment.

exclude_patterns

  • Type: Array
  • Presence: optional
  • Description: List of glob patterns that should be excluded when the analyses are run. These patterns should be relative to the repository’s root.
  • Example:

test_patterns

  • Type: Array
  • Presence: optional
  • Description: List of glob patterns that should be marked as tests or containing test files. These patterns should be relative to the repository’s root. Example:

analyzers

  • Type: Array of Tables
  • Presence: mandatory
  • Description: List of analyzers. For each analyzer that has to be enabled for this repo, an entry has to be added to the analyzers table. Refer to analyzer specific configuration docs for available options.
  • Example:

The configuration must have at least one valid Analyzer enabled for the analysis to run.

transformers

  • Type: Array of Tables
  • Presence: mandatory
  • Description: List of transformers. For each transformer that has to be enabled for this repo, an entry has to be added to the transformers table. Refer to transformer-specific configuration docs for available options.
  • Example: