@@ -22,24 +22,54 @@ spotless {
22
22
}
23
23
plugins.withId(" org.jetbrains.kotlin.jvm" ) {
24
24
kotlin {
25
- ktlint().userData(mapOf (" indent_size" to " 2" , " continuation_indent_size" to " 2" , " disabled_rules" to " no-wildcard-imports" ))
25
+ ktlint().editorConfigOverride(mapOf (
26
+ " indent_size" to " 2" ,
27
+ " continuation_indent_size" to " 2" ,
28
+ " max_line_length" to " 160" ,
29
+ " insert_final_newline" to " true" ,
30
+ " ktlint_standard_no-wildcard-imports" to " disabled" ,
31
+ // ktlint does not break up long lines, it just fails on them
32
+ " ktlint_standard_max-line-length" to " disabled" ,
33
+ // ktlint makes it *very* hard to locate where this actually happened
34
+ " ktlint_standard_trailing-comma-on-call-site" to " disabled" ,
35
+ // depends on ktlint_standard_wrapping
36
+ " ktlint_standard_trailing-comma-on-declaration-site" to " disabled" ,
37
+ // also very hard to find out where this happens
38
+ " ktlint_standard_wrapping" to " disabled"
39
+ ))
26
40
licenseHeaderFile(rootProject.file(" buildscripts/spotless.license.java" ), " (package|import|class|// Includes work from:)" )
27
41
}
28
42
}
29
43
kotlinGradle {
30
- ktlint().userData(mapOf (" indent_size" to " 2" , " continuation_indent_size" to " 2" , " disabled_rules" to " no-wildcard-imports" ))
44
+ ktlint().editorConfigOverride(mapOf (
45
+ " indent_size" to " 2" ,
46
+ " continuation_indent_size" to " 2" ,
47
+ " max_line_length" to " 160" ,
48
+ " insert_final_newline" to " true" ,
49
+ " ktlint_standard_no-wildcard-imports" to " disabled" ,
50
+ // ktlint does not break up long lines, it just fails on them
51
+ " ktlint_standard_max-line-length" to " disabled" ,
52
+ // ktlint makes it *very* hard to locate where this actually happened
53
+ " ktlint_standard_trailing-comma-on-call-site" to " disabled" ,
54
+ // depends on ktlint_standard_wrapping
55
+ " ktlint_standard_trailing-comma-on-declaration-site" to " disabled" ,
56
+ // also very hard to find out where this happens
57
+ " ktlint_standard_wrapping" to " disabled"
58
+ ))
31
59
}
32
60
format(" misc" ) {
33
61
// not using "**/..." to help keep spotless fast
34
62
target(
63
+ " .gitignore" ,
35
64
" .gitattributes" ,
36
65
" .gitconfig" ,
37
66
" .editorconfig" ,
38
67
" *.md" ,
39
68
" src/**/*.md" ,
40
69
" docs/**/*.md" ,
41
70
" *.sh" ,
42
- " src/**/*.properties" )
71
+ " src/**/*.properties" ,
72
+ )
43
73
indentWithSpaces()
44
74
trimTrailingWhitespace()
45
75
endWithNewline()
0 commit comments