> For the complete CircleCI developer hub index, see [llms.txt](https://circleci.com/developer/llms.txt)

# datadog/datadog-static-analyzer-circleci-orb

Analyze your code with the Datadog Static Analyzer and upload the results to Datadog


## Commands

### analyze

This command analyzes your code and upload the results to Datadog.


| Parameter | Type | Default | Description |
|---|---|---|---|
| `cpu_count` | integer | 2 | Set the number of CPUs used to by the analyzer. |
| `enable_performance_statistics` | boolean | false | Get the execution time statistics for analyzed files. |
| `env` | string | none | The name of the environment you want your results tagged with. |
| `service` | string |  | The name of the service you want your results tagged with. |
| `site` | string | datadoghq.com | The name of the site you want your results uploaded to. |

## Executors

### default

This is a sample executor using Docker and Node. If you want to provide a custom environment in your orb, insert your image here. If you do not require an executor, you can simply delete this directory.


| Parameter | Type | Default | Description |
|---|---|---|---|
| `tag` | string | current | The latest version of node available.
 |

## Examples

### example

Use the Datadog Static Analyzer to analyze your code and upload the results to Datadog.


```yaml
version: '2.1'
orbs:
  datadog-static-analysis: datadog/datadog-static-analyzer-circleci-orb@1
jobs:
  run-static-analysis-job:
    docker:
      - image: cimg/node:current
    steps:
      - checkout
      - datadog-static-analysis/analyze:
          cpu_count: 2
          enable_performance_statistics: false
          service: my-service
workflows:
  main:
    jobs:
      - run-static-analysis-job
```