/ktlint-action

Run the latest Ktlint using github actions.

Primary LanguageDockerfileApache License 2.0Apache-2.0

GitHub Action: Run ktlint

This GitHub Action runs the lastest version of ktlint on pull requests to enforce best practices.

Based on ScaCap implementation.

Example usage

name: Project
on: [pull_request]
jobs:
  ktlint:
    name: Check Code Quality
    runs-on: ubuntu-latest

    steps:
      - name: Clone PR
        uses: actions/checkout@v2
        with:
          fetch-depth: 1
      - name: Run Ktlint
        uses: lucasnlm/ktlint-action@master