AccountType

ValueDescription
INDIVIDUALA individual account.
TEAMA team account.

AccountSubscriptionPlan

Represents DeepSource’s subscription plans.

Value
FREE
STARTER
BUSINESS
ENTERPRISE

AnalysisRunStatus

An enumeration.

ValueDescription
PENDINGThe Analysis run is still pending and results are awaited.
SUCCESSThe Analysis has completed successfully and no issues were found.
FAILUREThe Analysis has completed succesfully and some issues were detected by DeepSource.
TIMEOUTThe Analysis could not complete within an acceptable time range.
CANCELAnother analysis was started for the same commitID.
READY

CheckStatus

An enumeration.

Value
WAITING
PENDING
SUCCESS
FAILURE
TIMEOUT
CANCEL
READY
NEUTRAL
ARTIFACT_TIMEOUT

CodeCoverageReportRepositorySortKey

Sort key to use to specify the sorting when fetching repositories in the Code Coverage report.

ValueDescription
LCV_ASCENDINGSort repositories in the Code Coverage report using the LCV metric value in ascending order.
LCV_DESCENDINGSort repositories in the Code Coverage report using the LCV metric value in descending order.
BCV_ASCENDINGSort repositories in the Code Coverage report using the BCV metric value in ascending order.
BCV_DESCENDINGSort repositories in the Code Coverage report using the BCV metric value in descending order.

IssueCategory

An enumeration.

ValueDescription
ANTI_PATTERNAnti-patterns are certain ways of writing code that result in poor design. While anti-patterns are correct code, they are not recommended as they often affect maintainability, readability, performance, and security.
BUG_RISKBug risks are issues in code that can cause errors in code and breakages in production. A bug is a flaw in the code that produces undesired or incorrect results.
PERFORMANCEPerformance issues are issues that impact the performance of code being executed by slowing it down.
SECURITYA bug in code which could potentially be used to compromise security is a security vulnerability issue.
COVERAGECoverage issues are raised against code that is not covered in tests.
TYPECHECKTypecheck issues are raised for type-annotated code in dynamically typed languages (Python, for example) if the annotations are not correct.
SECRETSHardcoded credentials detected in source code.
STYLEStyle issues are violations in the code format according to a style guide.
DOCUMENTATIONDocumentation issues are raised for undocumented classes, functions, modules etc.

IssueSeverity

An enumeration.

Value
CRITICAL
MAJOR
MINOR

ReportKey

Represents the various kinds of reports that exist.

ValueDescription
OWASP_TOP_10The OWASP Top 10 report.
SANS_TOP_25The SANS Top 25 report.
ISSUE_DISTRIBUTIONThe Issue Distribution report.

ReportStatus

Represents the various statuses that a report can have.

ValueDescription
PASSINGThe report’s status is passing.
FAILINGThe report’s status is failing.
NOOPThe report doesn’t have a status.

VCSProvider

An enumeration.

Value
GITHUB
GITLAB
BITBUCKET
GITHUB_ENTERPRISE
GSR

MetricShortcode

Represents the various metric types.

ValueDescription
BCVBranch Coverage
CCVCondition Coverage
DCVDocumentation Coverage
DDPExternal Dependencies
LCVLine Coverage
CPCVComposite Coverage
NLCVNew Line Coverage
NBCVNew Branch Coverage
NCCVNew Condition Coverage
NCPCVNew Composite Coverage

MetricKey

Represents the key for which the metric is recorded in a repository.

Value
AGGREGATE
C_AND_CPP
CSHARP
GO
JAVA
JAVASCRIPT
PHP
PYTHON
RUBY
RUST
SCALA
KOTLIN
SWIFT

MetricThresholdStatus

Represents the status of the threshold condition for a particular metric value.

ValueDescription
PASSINGMetric value meets the threshold.
FAILINGMetric value doesn’t meet the threshold.

TeamMemberRole

Represents the role of a user in a team.

Value
ADMIN
MEMBER
CONTRIBUTOR

IgnoreRuleLevel

Represents the level of an IgnoreRule.

ValueDescription
REPOSITORYSuppress the issue for all files in the repository.
FILESuppress the issue for the given file path in the repository.

IgnoreRuleType

Represents the type of an IgnoreRule.

ValueDescription
FOREVERSuppress the issue in the repository always.
PATTERNSuppress the issue occurrences matching the given glob pattern in the repository.
TEST_PATTERNSuppress the issue occurrences matching the repository’s specified test patterns in the repository.