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

# jetbrains/qodana

⚙️ Scan your Java, Kotlin, PHP, Python, JavaScript, TypeScript projects at CircleCI with Qodana


## Commands

### scan

Scan a project with Qodana. It runs Qodana `scan` command and reports the results. Note that most options can be configured via qodana.yaml (https://www.jetbrains.com/help/qodana/qodana-yaml.html) file. To send reports from CircleCI to Qodana Cloud, all you need to do is to set `QODANA_TOKEN` environment variable in your project settings. To learn more, see https://www.jetbrains.com/help/qodana/circleci.html


| Parameter | Type | Default | Description |
|---|---|---|---|
| `additional-cache-key` | string | qodana-2026.1-<< pipeline.git.branch >> | Allows customizing the additional cache hash. Optional.
 |
| `args` | string |  | Additional Qodana CLI `scan` command arguments (https://github.com/jetbrains/qodana-cli#scan). Optional.
 |
| `artifact-name` | string | qodana-report | Specify Qodana results artifact name, used for results uploading. Optional.
 |
| `cache-dir` | string | /tmp/cache/qodana | Directory to store Qodana caches. Optional.
 |
| `primary-cache-key` | string | qodana-2026.1-<< pipeline.git.branch >>-<< pipeline.git.revision >> | Allows customizing the primary cache hash. Optional.
 |
| `results-dir` | string | /tmp/qodana/results | Directory to store the analysis results. Optional.
 |

## Examples

### scan

Scan the project with Qodana.


```yaml
version: '2.1'
orbs:
  qodana: jetbrains/qodana@2026.1.3
jobs:
  code-quality:
    machine:
      image: ubuntu-2004:current
    steps:
      - checkout
      - qodana/scan
workflows:
  main:
    jobs:
      - code-quality:
          context: qodana
```