/ktlint-ruleset-mc-preprocessor

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

Primary LanguageKotlinMIT LicenseMIT

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