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

Apply styles to multiple file extensions in one go #269

Closed
igorwojda opened this issue Aug 19, 2019 · 3 comments
Closed

Apply styles to multiple file extensions in one go #269

igorwojda opened this issue Aug 19, 2019 · 3 comments
Labels

Comments

@igorwojda
Copy link

I am not 100% sure if this is ktlint-gradle problem, but it looks like multiple file extensions syntax ([*.{kt, kts}]) is ignored in the .editorconfig file:

This works

[*]
end_of_line = lf
insert_final_newline = true
indent_size = 4
max_line_length = 120

This does not work

[*.{kt, kts}]
end_of_line = lf
insert_final_newline = true
indent_size = 4
max_line_length = 120

More info editorconfig/editorconfig#113 (comment)

version 8.2.0

@Tapchicoma
Copy link
Collaborator

Try to remove space in glob definition: [*.{kt,kts}]

@Tapchicoma
Copy link
Collaborator

Ktlint uses custom .editorconfig parser that is not working well, I've tried to address this problem in pinterest/ktlint#561 PR.

@igorwojda
Copy link
Author

Works without space.

BTW It's a bit tricky for me because my IDE reformats code on save...and add the space.

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

No branches or pull requests

2 participants