Add Ktlint configs to the code style file
From https://github.com/ankidroid/Anki-Android/issues/9390#issuecomment-950353851
Perhaps if we used one of the plugins (this is most popular: https://github.com/jlleitschuh/ktlint-gradle#additional-helper-tasks) and just integrated it's pre-commit hook (and IDEA style file generation) we'd get editor support for style in Android Studio, and we'd get formatting as a pre-commit hook, and everyone else already using that plugin will have solved all the problems we're cutting our teeth on?
I'd like to see a Proof of concept that killed our pre-commit hook and tried integrating that plugin with it's IDEA style + commit hook)
This PR is only for fixing the pre-commit problem. As I found very reasonable to try using the plugin IDEA style as well and the repo's kotlin code style barely exists, I'll peel it to a separate issue.
Originally posted by @BrayanDSO in https://github.com/ankidroid/Anki-Android/pull/11995#issuecomment-1210459012
Here's the code style file. Related to #11852 as well.