Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Spotless Ktlint integration in kts #13

Merged
merged 4 commits into from
Nov 28, 2023

Conversation

Goooler
Copy link
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
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
8 checks passed
@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