Skip to content

block42-blockchain-company/ktlint-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action ktlint Linter

This GitHub action runs the Kotlin Formatter ktlint.

Example usage

Create the folder .github in your repository, and create inside a file ktlint-formatter.yaml with the following code:

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: "block42-blockchain-company/ktlint-action@master"

Now everytime you create a Pull Request, ktlint will check if your code is properly formatted and fail if it isn't!

About

GitHub action to lint Kotlin code

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 100.0%