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

https://github.com/natiginfo/action-detekt-all

Run detekt for all files
https://github.com/natiginfo/action-detekt-all

android detekt github-actions kotlin

Last synced: 9 months ago
JSON representation

Run detekt for all files

Awesome Lists containing this project

README

          

# GitHub Action: Detekt All

GitHub Action for running [detekt](https://github.com/detekt/detekt) checks to enforce best practices. Detekt is a static code analysis tool for Kotlin.

Version of the action is aligned with [detekt versions](https://github.com/detekt/detekt/releases).

## Example usage

```yaml
name: detekt

on:
push:
branches: [ master ]

jobs:
detekt:
runs-on: ubuntu-latest

steps:
- name: "checkout"
uses: actions/checkout@v2

- name: "detekt"
uses: natiginfo/action-detekt-all@1.23.8
```
## Usage with [CLI parameters](https://detekt.github.io/detekt/cli.html#use-the-cli)

```yaml
name: detekt

on:
push:
branches: [ master ]

jobs:
detekt:
runs-on: ubuntu-latest

steps:
- name: "checkout"
uses: actions/checkout@v2

- name: "detekt"
uses: natiginfo/action-detekt-all@1.23.8
with:
args: --config detekt.yml
```

You can check available CLI parameters [here](https://detekt.github.io/detekt/cli.html#use-the-cli)