blob: 6d7ef310925908eb3ec5845cb2f04383395cf0a4 [file] [log] [blame]
package com.github.shyiko.ktlint.core
import java.io.PrintStream
/**
* `ktlint` uses [ServiceLoader](http://docs.oracle.com/javase/6/docs/api/java/util/ServiceLoader.html) to
* discover all available [ReporterProvider]s on the classpath and so each [ReporterProvider] must be registered using
* `META-INF/services/com.github.shyiko.ktlint.core.ReporterProvider`
* (see `ktlint-reporter-plain/src/main/resources` for an example).
*/
interface ReporterProvider {
val id: String
fun get(out: PrintStream, opt: Map<String, String>): Reporter
}