forked from JLLeitschuh/ktlint-gradle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
KtlintExtension.kt
39 lines (37 loc) · 872 Bytes
/
KtlintExtension.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package org.jlleitschuh.gradle.ktlint
/**
* Extension class for configuring the [KtlintPlugin].
*/
open class KtlintExtension {
/**
* The version of ktlint to use.
*/
var version = "0.9.2"
/**
* Enable verbose mode.
*/
var verbose = false
/**
* Enable debug mode.
*/
var debug = false
/**
* Enable android mode.
*/
var android = false
/**
* Whether or not to allow the build to continue if there are warnings;
* defaults to {@code false}, as for any other static code analysis tool.
* <p>
* Example: `ignoreFailures = true`
*/
var ignoreFailures = false
/**
* Report output format.
*
* Available values: plain, plain_group_by_file, checkstyle, json.
*
* Default is plain.
*/
var reporter: ReporterType = ReporterType.PLAIN
}