Skip to content

natiginfo/action-detekt-all

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

GitHub Action: Detekt All

GitHub Action for running detekt checks to enforce best practices. Detekt is a static code analysis tool for Kotlin.

Version of the action is aligned with detekt versions.

Example usage

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.5

Usage with CLI parameters

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.5
         with:
          args:  --config detekt.yml

You can check available CLI parameters here