ktlint

How do I add KtLint style to Android Studio using Gradle?

亡梦爱人 提交于 2020-12-30 03:36:46
问题 I want to add the style ktlint uses to Android Studio so that when I apply formatting myself it uses the ktlint style. Based on the documentation, I installed the ktlint CLI brew install ktlint I then navigated to the root of my project and executed ktlint --android applyToIDEAProject The style now appears in my preferences for use. The issue is that the style applied through CLI uses what I think is the latest version of ktlint since my manual formatting is different from the formatting

How do I add KtLint style to Android Studio using Gradle?

好久不见. 提交于 2020-12-30 03:36:11
问题 I want to add the style ktlint uses to Android Studio so that when I apply formatting myself it uses the ktlint style. Based on the documentation, I installed the ktlint CLI brew install ktlint I then navigated to the root of my project and executed ktlint --android applyToIDEAProject The style now appears in my preferences for use. The issue is that the style applied through CLI uses what I think is the latest version of ktlint since my manual formatting is different from the formatting

How do I add KtLint style to Android Studio using Gradle?

倾然丶 夕夏残阳落幕 提交于 2020-12-30 03:36:06
问题 I want to add the style ktlint uses to Android Studio so that when I apply formatting myself it uses the ktlint style. Based on the documentation, I installed the ktlint CLI brew install ktlint I then navigated to the root of my project and executed ktlint --android applyToIDEAProject The style now appears in my preferences for use. The issue is that the style applied through CLI uses what I think is the latest version of ktlint since my manual formatting is different from the formatting