-
Notifications
You must be signed in to change notification settings - Fork 103
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
Option to permit different indentations inside and outside multiline strings #505
Comments
Thanks for reporting! Could you please post the steps you used to get the above output? I think the answer probably depends on exactly which tools you are using. |
Not exactly sure! My editorconfig is running as a part of megalinter, which reports it as editorconfig issue. |
I've never heard of megalinter --- is it this? https://github.com/oxsecurity/megalinter/blob/main/megalinter/descriptors/editorconfig.megalinter-descriptor.yml Your request is reasonable, but I don't know a way to support it. EditorConfig only stores one set of conventions per file, and doesn't know anything about blocks within files. I have noted this issue in the wider discussion at #415 (comment). Edit As of right now, the checker would have to implement a custom property supporting this behaviour. (note: the above link for megalinter appears to delegate to https://github.com/editorconfig-checker/editorconfig-checker/blob/main/pkg/validation/validation.go, which uses the golang core.) |
I have a bash script which has multiline variables, which begin lines with spaces:
My .editorconfig assumes tabs:
When I run it against editorconfig, I get an error, like:
Is there a rule to make editorconfig ignore the contents of bash variables?
The text was updated successfully, but these errors were encountered: