Skip to content

Test Spotless Ktlint integration in kts#13

Merged
Goooler merged 4 commits intopublish-base-classesfrom
base-kt-extensio-test
Nov 28, 2023
Merged

Test Spotless Ktlint integration in kts#13
Goooler merged 4 commits intopublish-base-classesfrom
base-kt-extensio-test

Conversation

@Goooler
Copy link
Copy Markdown
Owner

@Goooler Goooler commented Nov 28, 2023

Add a test case for diffplug#1912.

@Goooler Goooler changed the title Convert withCustomRuleSetApply build script to kts Test Spotless Ktlint integration in kts build script Nov 28, 2023
@Goooler
Copy link
Copy Markdown
Owner Author

Goooler commented Nov 28, 2023

https://scans.gradle.com/s/prj53ehrw5zoi/tests/task/:plugin-gradle:test/details/com.diffplug.gradle.spotless.KotlinExtensionTest/withCustomRuleSetApply()?top-execution=1

> Configure project : |  
-- | --
  | e: /tmp/junit16565205775692441507/build.gradle.kts:13:79: Expecting an argument |  
  | e: /tmp/junit16565205775692441507/build.gradle.kts:9:10: Cannot access 'BaseKotlinExtension': it is package-private in 'com.diffplug.gradle.spotless' |  
  | e: /tmp/junit16565205775692441507/build.gradle.kts:13:13: Unresolved reference: ktlint_function_naming_ignore_when_annotated_with |  
  |   |  
  | FAILURE: Build failed with an exception. |  
  |   |  
  | * Where: |  
  | Build file '/tmp/junit16565205775692441507/build.gradle.kts' line: 13 |  
  |   |  
  | * What went wrong: |  
  | Script compilation errors: |  
  |   |  
  | Line 13:             ktlint_function_naming_ignore_when_annotated_with to "Composable", |  
  | ^ Expecting an argument |  
  |   |  
  | Line 09:         .customRuleSets(listOf( |  
  | ^ Cannot access 'BaseKotlinExtension': it is package-private in 'com.diffplug.gradle.spotless' |  
  |   |  
  | Line 13:             ktlint_function_naming_ignore_when_annotated_with to "Composable", |  
  | ^ Unresolved reference: ktlint_function_naming_ignore_when_annotated_with |  
  |   |  
  | 3 errors

@Goooler Goooler changed the base branch from main to publish-base-classes November 28, 2023 04:30
@Goooler Goooler changed the title Test Spotless Ktlint integration in kts build script Test Spotless Ktlint integration in kts Nov 28, 2023
@Goooler Goooler merged commit 0d1f612 into publish-base-classes Nov 28, 2023
@Goooler Goooler deleted the base-kt-extensio-test branch November 28, 2023 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant