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

Match ktlint_code_style with Ktlint documentation #1

Merged
merged 10 commits into from
Apr 8, 2024
Merged

Conversation

Jaehwa-Noh
Copy link
Owner

Ktlint document says that

Starting from version 1.0, ktlint_official is the default code style. If you want to revert to another code style, then set the .editorconfig property ktlint_code_style.

But Spotless default set intellij_idea It makes developer mistake and misconception.

According Ktlint documentation, only one want to revert another code style must set the ktlint_code_style, but in Spotless need to set the ktlint_code_style who want to apply ktlint_official or else styles.

diffplug#2090

- If don't have ktlint_code_style, ```ktlint``` set it ```ktlint_official``` as default value.
- writePomWithKotlinSteps_intellijIdea_intellijIdeaStyleKtlint
- writePomWithKotlinSteps_default_officialStyleKtlint
- target_setAndUnset_intellijIdeaStyle
- target_setAndUnset_defaultKtlintOfficialStyle
- editorConfigOverride_setExperimental_intellijIdeaStyle
- editorConfigOverride_setExperimental_defaultKtlintOfficialStyle
@Jaehwa-Noh Jaehwa-Noh self-assigned this Apr 8, 2024
@Jaehwa-Noh Jaehwa-Noh merged commit 2f5339c into main Apr 8, 2024
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

Successfully merging this pull request may close these issues.

1 participant