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

# corballis/intellij-code-format

This orb downloads and configures a specified version of IntelliJ IDEA and use it's code formatting capablities to verify that properly formatted code triggered the build. IMPORTANT: You need to provide an environment variable which contains an URL to your idea.key file (product license) unless IntelliJ won't start. This orb requires XServer to open IntelliJ, so make sure your build uses a docker image with that capablity eg.: circleci/openjdk:8u151-jdk-node-browsers The following environment variables are required: Code uses 'CIRCLE_WORKING_DIRECTORY' environment variable to determine your project root. INTELLIJ_VERSION:  2018.3.5 INTELLIJ_CONFIG_FOLDER: /home/user/.IntelliJIdea2018.3/config INTELLIJ_LICENSE_KEY_URL: https://path.to/yourlicensefile

## Commands

### verify-code-format

Verifies proper code formatting

| Parameter | Type | Default | Description |
|---|---|---|---|
| `folders` | string | $CIRCLE_WORKING_DIRECTORY | Space separated folder patterns. The scope of the verification can be specified. It's useful when you want to exclude some directories. You can add your white list here. |