I know I've still had a good amount of issues usin...
# ktlint
c
I know I've still had a good amount of issues using editorconfig and ktlint. The editorconfig rules just don't seem to match up or work. According to this

https://youtu.be/KffXqIZ0tYg?t=531

editorconfig is fixed? "The last kotlin specific feature is that Intellij idea now has full support for kotlin in editforconfig files" 👀
r
yeah, I am using 2020.3 EAP and it seems to be working there
but ktlint still doesn’t have full support of it - just the basic one, but we are planning to extend it in the next release
c
🙏 thank you. the fact that pressing cmd + shift + L and ktlintFormat produce different results really hurts my team
s
please be sure that your Ide also use editor config. And be sure to update editor config according to ktlint default.
c
Hm. How do I do that? Is that available somewhere but maybe my eyes are just missing it?
s
message has been deleted
and about default. Ktlint should be able to create an editorconfig file with all the default.
c
I have that enabled! Hooray.
Ktlint should be able to create an editorconfig file with all the default.
Hm... Will have to look up where that happens. I haven't noticed ktlint creating an editorconfig.
r
https://github.com/pinterest/ktlint/releases/tag/0.40.0 it’s the new
generateEditrConfig
cli subcommand, but as I mentioned it’s not fully functional yet - atm it just supports 3 editorconfig properties (iirc), but we are planning to extend it and support all possible props at some point
c
@romtsn thank you! I must admit that just getting it working has made me feel like an idiot, so please excuse my noob questions.