Skip to content

feat: --enable-editorconfig flag and .editorconfig support - #570

Closed
tKe wants to merge 7 commits into
Kotlin:mainfrom
tKe:editorconfig
Closed

feat: --enable-editorconfig flag and .editorconfig support#570
tKe wants to merge 7 commits into
Kotlin:mainfrom
tKe:editorconfig

Conversation

@tKe

@tKe tKe commented Nov 12, 2025

Copy link
Copy Markdown
Contributor

closes #45

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 12, 2025
@tKe

tKe commented Nov 28, 2025

Copy link
Copy Markdown
Contributor Author

@hick209 is this inline with you were alluding to in your comment in #567?

@hick209

hick209 commented Dec 10, 2025

Copy link
Copy Markdown
Collaborator

That's awesome! Thanks for working on it

@meta-codesync

meta-codesync Bot commented Dec 10, 2025

Copy link
Copy Markdown

@hick209 has imported this pull request. If you are a Meta employee, you can view this in D88870046.

@cortinico cortinico left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@hick209 hick209 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good.
Just a few minor tweaks and we can ship this.

Comment thread core/src/main/java/com/facebook/ktfmt/cli/EditorConfigResolver.kt Outdated
Comment thread core/src/main/java/com/facebook/ktfmt/cli/ParsedArgs.kt Outdated
Comment thread gradle/libs.versions.toml Outdated

@hick209 hick209 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, please update the CHANGELOG.md. It can be something like

- ktfmt can pull formatting configs from editor config files (https://github.com/facebook/ktfmt/pull/570)

@tKe
tKe requested a review from hick209 December 12, 2025 18:24
@hick209

hick209 commented Dec 17, 2025

Copy link
Copy Markdown
Collaborator

There are some minor things that I'll fix myself here before landing. Awesome work @tKe, thanks for contributing to making ktfmt better for everyone

@meta-codesync

meta-codesync Bot commented Dec 17, 2025

Copy link
Copy Markdown

@hick209 merged this pull request in af60c47.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Align configuration options between CLI, IDE plugin and Gradle Consume .editorconfig for configuration

4 participants