-
-
Notifications
You must be signed in to change notification settings - Fork 345
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
Ignoring EditorConfig on stdin is probably a bad idea #450
Comments
Interesting, I hadn't thought about this scenario at all. Thanks for bringing it up. If one wants to use shfmt on standard input with no EditorConfig, they can always rely on a formatting flag to turn off the feature, like |
|
@lassik you're very right that I didn't consider filenames in my patch above. I'll write a longer reply to your new issue, since this one is closed. |
It's a common use-case for editors (e.g. Emacs) to use stdin, stdout and stderr as an interface to linters and formatters. Usually, the formatter is executed in the project directory so that even though there is no path information, an
.editorconfig
can be found. Would be great if stdin+editorconfig combination would be supported.The text was updated successfully, but these errors were encountered: