blob: 27f02291ca814077f84439fc4850835a3a6180ae [file] [log] [blame]
package com.github.shyiko.ktlint.core
* `ktlint` uses [ServiceLoader]( to
* discover all available `RuleSetProvider`s on the classpath and so each `RuleSetProvider` must be registered using
* `META-INF/services/com.github.shyiko.ktlint.core.RuleSetProvider`
* (see `ktlint-ruleset-standard/src/main/resources` for an example).
interface RuleSetProvider {
* This method is going to be called once for each file (which means if any of the rules have state or
* are not thread-safe - a new RuleSet must be created).
fun get(): RuleSet