wf9a5m75 / gha-kotlin-linter

GitHub action to lint Kotlin code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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: **/*.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"

About

GitHub action to lint Kotlin code

License:MIT License


Languages

Language:Dockerfile 100.0%