Skip to content

A custom ktlint rule set containing customized rules from the standard set tweaked for Minecraft mods using preprocessing

License

Notifications You must be signed in to change notification settings

RubixDev/ktlint-ruleset-mc-preprocessor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom ktlint Rule Set for Minecraft Preprocessor Mods

This is a custom rule set for ktlint which modifies some standard rules to better work with Kotlin code that makes use of preprocessor.

Usage

The exact usage is dependent on your ktlint setup and you should refer to your integration's documentation, but here is how you would do it for Spotless in a build.gradle.kts file:

repositories {
    maven("https://jitpack.io")
}

spotless {
    kotlin {
        ktlint().customRuleSets(listOf("com.github.RubixDev:ktlint-ruleset-mc-preprocessor:01fbcf09be"))
    }
}

Replace the commit hash with the latest hash on JitPack.

Included Rules

About

A custom ktlint rule set containing customized rules from the standard set tweaked for Minecraft mods using preprocessing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages