Supported Analyzers
| Analyzer | Version | Shortcode | Repository |
|---|---|---|---|
| AWS CloudFormation | 0.83.0 | cfn-lint | https://github.com/aws-cloudformation/cfn-lint |
| Dart Analyze | 3.2.0 | dart-analyze | https://github.com/dart-lang/sdk/tree/main/pkg/linter |
| Kube Linter | 0.6.4 | kube-linter | https://github.com/stackrox/kube-linter |
| Slither | 0.10.0 | slither | https://github.com/crytic/slither |
| Solhint | 4.1.1 | solhint | https://github.com/protofire/solhint |
Setting up Community Analyzers on your repository
Incorporating Community Analyzers into your workflow is a simple process.- Begin by adding the analyzer into your
.deepsource.tomlconfiguration file. This step is akin to activating core analyzers in DeepSource. - Set up the
DEEPSOURCE_DSNenvironment variable within your Continuous Integration (CI) system. - Finally, integrate the analyzer into your CI system. For your convenience, we provide pre-formulated CI snippets for all major CI systems. Simply select and insert the appropriate snippet for the respective analyzer from the Analyzer Directory into your chosen CI system’s configuration.
-
Enable the analyzer by adding it to your repository’s
.deepsource.tomlconfig file. For example, if you want to enable Dart Analyze on your project, add the following to your.deepsource.tomlfile:We recommend you perform this action from your dashboard by navigating to the respective Repository → Settings → Configuration and then clicking on the Regenerate Configuration button. In case, you are activating a repository for the first time, please use the Activate a repository feature from your team’s dashboard.toml -
Set up
DEEPSOURCE_DSNenvironment variable for the project in your CI/CD pipeline. The DSN is used to associate the analysis report to the repository. This needs to be configured before sending the analysis report to DeepSource. To look up the DSN:- Go to the Settings page of the repository dashboard in DeepSource
- Go to the
Generaltab - Click on Copy button to copy your DSN mentioned under
Data Source Name (DSN)