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
shfmt supports simplifying and/or minifying shell scripts. However, there is no support provided via .editorconfig for the flags. So we'll need some additional configuration in the shfmt Gradle DSL to enable these.
My thoughts are something akin to one of the following:
Option 1
// Provides future extensible flexibility and follows the lead set by the `ktfmt` configurationspotless {
shell {
shfmt().configure {
it.minify =true
it.simplify =true
}
}
}
Option 2
// If any other options become available in the future, this seems to be less extensible, however, it is very readablespotless {
shell {
shfmt()
.minify()
.simplify()
}
}
Note that minifying the code implies simplifying the code. So both flags can probably be true, but both flags aren't required to simplify and minify.
The text was updated successfully, but these errors were encountered:
shfmt
supports simplifying and/or minifying shell scripts. However, there is no support provided via.editorconfig
for the flags. So we'll need some additional configuration in the shfmt Gradle DSL to enable these.My thoughts are something akin to one of the following:
Option 1
Option 2
Note that minifying the code implies simplifying the code. So both flags can probably be true, but both flags aren't required to simplify and minify.
The text was updated successfully, but these errors were encountered: