File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
plugin-gradle/src/test/java/com/diffplug/gradle/spotless Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -143,21 +143,21 @@ void testSetEditorConfigCanOverrideEditorConfigFile() throws IOException {
143
143
144
144
@ Test
145
145
void withCustomRuleSetApply () throws IOException {
146
- setFile ("build.gradle" ).toLines (
146
+ setFile ("build.gradle.kts " ).toLines (
147
147
"plugins {" ,
148
- " id ' org.jetbrains.kotlin.jvm' version ' 1.6.21' " ,
149
- " id ' com.diffplug.spotless' " ,
148
+ " id( \" org.jetbrains.kotlin.jvm\" ) version \" 1.6.21\" " ,
149
+ " id( \" com.diffplug.spotless\" ) " ,
150
150
"}" ,
151
151
"repositories { mavenCentral() }" ,
152
152
"spotless {" ,
153
153
" kotlin {" ,
154
154
" ktlint(\" 1.0.1\" )" ,
155
- " .customRuleSets([ " ,
155
+ " .customRuleSets(listOf( " ,
156
156
" \" io.nlopez.compose.rules:ktlint:0.3.3\" " ,
157
- " ] )" ,
158
- " .editorConfigOverride([ " ,
159
- " ktlint_function_naming_ignore_when_annotated_with: \" Composable\" , " ,
160
- " ] )" ,
157
+ " ) )" ,
158
+ " .editorConfigOverride(mapOf( " ,
159
+ " \" ktlint_function_naming_ignore_when_annotated_with\" to \" Composable\" " ,
160
+ " ) )" ,
161
161
" }" ,
162
162
"}" );
163
163
setFile ("src/main/kotlin/Main.kt" ).toResource ("kotlin/ktlint/listScreen.dirty" );
You can’t perform that action at this time.
0 commit comments