You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a bash script which has multiline variables, which begin lines with spaces:
#!/bin/bash
RULES="rules:
- when: manual # <----- two spaces at the beginning of the line
allow_failure: true" # <----- four spaces at the beginning of the line
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.
cxw42
changed the title
editorconfig forces tabs in multiline variables
Option to permit different indentations inside and outside multiline strings
Apr 28, 2024
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.
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: