Skip to content
New issue

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

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

Already on GitHub? # to your account

Spotless configuration is inefficient #67

Closed
nedtwigg opened this issue Nov 19, 2024 · 1 comment
Closed

Spotless configuration is inefficient #67

nedtwigg opened this issue Nov 19, 2024 · 1 comment

Comments

@nedtwigg
Copy link

configure<com.diffplug.gradle.spotless.SpotlessExtension> {
kotlin {
target("**/*.kt")
targetExclude("${layout.buildDirectory}/**/*.kt")
targetExclude("bin/**/*.kt")

This would be much more efficient: target('src/**/*.kt'). It lets you remove the targetExclude, and it will search a smaller set of files. We have tried to remove all leading **/*.blah from our examples, because there's almost always some prefix that can make things a lot faster.

@j-roskopf
Copy link
Owner

ah! good to know. thank you for the info! I've updated the configuration in the following PR #68

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants