Scala

Configuration - .deepsource.toml

This section covers configuration specific to the scala analyzer. Please make sure you read the general configuration guide first.

name

  • Type: String
  • Presence: mandatory
  • Description: Shortcode of the analyzer.
  • Example:
name = "scala"

enabled

  • Type: Boolean
  • Presence: mandatory
  • Description: Toggle whether this analyzer should be run.
  • Example:
enabled = true

meta

  • Type: Table
  • Presence: mandatory
  • Description: Additional data used to configure the analyzer.
  • Example:
[analyzers.meta]
  major_version = "3"

major_version

  • Type: String
  • Presence: mandatory
  • Description: Specifies the highest version of Scala in use in your codebase.
  • Aliases: major_version
  • Example:
[analyzers.meta]
  major_version = "3"

Sample config

version = 1

test_patterns = [
  "src/test/scala/**"
]

exclude_patterns = [
  "**/examples/**"
]

[[analyzers]]
name = "scala"
enabled = true

[analyzers.meta]
  major_version = "2"