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

[Bug]: Current project is not applied android_studio style ktlint #1362

Open
3 tasks done
Jaehwa-Noh opened this issue Apr 7, 2024 · 0 comments · May be fixed by #1350
Open
3 tasks done

[Bug]: Current project is not applied android_studio style ktlint #1362

Jaehwa-Noh opened this issue Apr 7, 2024 · 0 comments · May be fixed by #1350
Labels
bug Something isn't working

Comments

@Jaehwa-Noh
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Is there a StackOverflow question about this issue?

  • I have searched StackOverflow

What happened?

Current project is not applied android_studio style ktlint

In init.gradle.kts, there are editorconfigOverride with android to true, but there are no keyword for android = true in editorconfig file.

ktlint(ktlintVersion).editorConfigOverride(
                    mapOf(
                        "android" to "true",
                    ),
                )

The correct usage is that write ktlint_code_style = android_studio in editorconfig.

Current project was applied intellij_idea style ktlint which Spotless set this as default when don't have ktlint_code_style.

if (!editorConfigOverrideMap.containsKey("ktlint_code_style")) {
			editorConfigOverrideMap.put("ktlint_code_style", "intellij_idea");
		}

Relevant logcat output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Jaehwa-Noh Jaehwa-Noh added the bug Something isn't working label Apr 7, 2024
@Jaehwa-Noh Jaehwa-Noh linked a pull request Apr 7, 2024 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant