shfmt supports .editorconfig out of the box so spotless should support this too, if possible, instead of using the current default flags. If editorconfig can't be supported for some reason, maybe a fallback to some shfmt() extension DSL should be added in case developers want to codify the flags into their Gradle configuration. The current default flags do not appear to give developers any way of overriding them however and force developers to use an indent of 2 spaces and for case statements to be indented (which some developers may not want).
shfmt supports .editorconfig out of the box so spotless should support this too, if possible, instead of using the current default flags. If editorconfig can't be supported for some reason, maybe a fallback to some
shfmt()extension DSL should be added in case developers want to codify the flags into their Gradle configuration. The current default flags do not appear to give developers any way of overriding them however and force developers to use an indent of 2 spaces and for case statements to be indented (which some developers may not want).