Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support -F with --stdin #1558

Closed
alex-shinn opened this issue Jul 27, 2022 · 2 comments
Closed

Support -F with --stdin #1558

alex-shinn opened this issue Jul 27, 2022 · 2 comments

Comments

@alex-shinn
Copy link

Expected Behavior

It's reasonable to want to use ktlint as a filter, reading Kotlin code on stdin and writing the correctly formatted version to stdout. Many other auto-formatters work this way, and it's important to be able to call out to ktlint from editors like Emacs and vim.

The separately reported issue to allow a --path=... with --stdin would complement this well.

Current Behavior

ktlint -F --stdin produces no output.

Additional information

  • Current version of ktlint: 0.46.1
@paul-dingemans
Copy link
Collaborator

Duplicate of #1153. Specifically, see #1153 (comment)

@alex-shinn
Copy link
Author

Thanks! Sorry for the duplicate.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants