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

.editorconfig indentation not respected for build.gradle.kts #896

Closed
mattbroekhuis opened this issue Sep 9, 2020 · 2 comments
Closed

.editorconfig indentation not respected for build.gradle.kts #896

mattbroekhuis opened this issue Sep 9, 2020 · 2 comments

Comments

@mattbroekhuis
Copy link

mattbroekhuis commented Sep 9, 2020

I have updated from 9.1.1 to 9.3.0. My editor config looks like this:
[*.{kt, kts}] indent_size = 2
However i get errors on all my build.gradle.kts files saying that the indentation needs to be 4. This is not the case for the regular source code, it all passes it seems

It works in 9.1.1 not 9.3.0. Am i missing something here? I tried to get on the slack channel but cannot seem to join it.

Thanks for the awesome tool

plugins { id("idea") kotlin("jvm") version "1.4.0" id("org.jlleitschuh.gradle.ktlint-idea") version "9.1.1" id("org.jlleitschuh.gradle.ktlint") version "9.1.1" id("io.gitlab.arturbosch.detekt") version "1.12.0" id("org.unbroken-dome.test-sets") version "3.0.1" id("com.adarshr.test-logger") version "2.0.0" id("nu.studer.jooq") version "5.0.2" id("org.flywaydb.flyway") version "6.5.5" }

@Tapchicoma
Copy link
Collaborator

your .editorconfig should look following (note missing space):

[*.{kt,kts}] 
indent_size = 2

See #762 for details.

@mattbroekhuis
Copy link
Author

Thank you

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

No branches or pull requests

2 participants