Skip to content

monta-app/detekt-action

Repository files navigation

Detekt Action

Centralized storing and running our Detekt workflow, this is also where we are centralizing our configuration of Detekt

How to use

Add this step to your pull_request.yml inside of your github workflows with the following block

  static-code-analysis:
    name: Static Code Analysis
    runs-on: ubuntu-latest
    timeout-minutes: 30
    steps:
      - name: Run detekt
        uses: monta-app/detekt-action@main
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}

Local Usage

  1. Build Dockerfile

    docker build -t monta-detekt:latest -f Dockerfile.monta-detekt .
  2. Run monta-detekt:latest on your repo with:

    # cd into your repo
    docker run --rm -v $PWD:/app monta-detekt:latest

About

Repository for the Kotlin Detekt configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages