-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ReporterProvider now implements Serializable interface.
This is needed for better Gradle plugin support.
- Loading branch information
1 parent
7e2c7fd
commit 8435fe3
Showing
7 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
ktlint-core/src/main/kotlin/com/pinterest/ktlint/core/ReporterProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
package com.pinterest.ktlint.core | ||
|
||
import java.io.PrintStream | ||
import java.io.Serializable | ||
|
||
/** | ||
* `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.pinterest.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 | ||
public interface ReporterProvider : Serializable { | ||
public val id: String | ||
public fun get(out: PrintStream, opt: Map<String, String>): Reporter | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters