Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
eye

GitHub Action

Kotlin Linter

v2

Kotlin Linter

eye

Kotlin Linter

Run ktlint in your repository

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Kotlin Linter

uses: vroy/gha-kotlin-linter@v2

Learn more about this action in vroy/gha-kotlin-linter

Choose a version

GitHub Action Kotlin Linter

This GitHub action runs the Kotlin Linter, ktlint.

Inputs

patterns

Optional A list of patterns to pass along to the ktlint command. Default: **/src/**/*.kt

Example usage

name: ktlint

on:
  pull_request:
    paths:
      - "**/*.kt"
      - ".github/workflows/ktlint.yml"

 jobs:
   ktlint:
     runs-on: ubuntu-latest

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

       - name: "ktlint"
         uses: "vroy/gha-kotlin-linter@v1"