An open API service indexing awesome lists of open source software.

https://github.com/findologic/intellij-format-action

GitHub action for running the IntelliJ IDEA CE formatter.
https://github.com/findologic/intellij-format-action

Last synced: 2 months ago
JSON representation

GitHub action for running the IntelliJ IDEA CE formatter.

Awesome Lists containing this project

README

          

# IntelliJ IDEA formatter action

Runs the formatter on code to auto-fix style, or enforce it.

## Inputs

### `include-glob`

Pattern for files to include in the formatting, e.g. `*.java,*.kt`. Default: `*`.

### `path`

Root path from which files to format are searched recursively. Must be relative to the workspace.
Default: `.`.

### `fail-on-changes`

Causes the action to fail upon detecting files changed by running the formatter if set to `true`.
Default: `false`.

## Outputs

### `files-changed`

Zero if none changed, greater if at least one file changed.

## Example usage

```yaml
uses: findologic/intellij-format-action@v1.1.0
with:
include-glob: '*.kt,*.java'
path: .
```