Create and use dart_format.sh wrapper script

This commit is contained in:
Michael Wolf
2023-09-30 18:05:36 -06:00
parent 50cbaa0454
commit f31cc2d4a2
2 changed files with 42 additions and 9 deletions

View File

@@ -46,17 +46,10 @@ elif [[ $file_type == "golang" ]]; then
retval="$?"
set -e
elif [[ $file_type == "dart" ]]; then
success_retval=0
would_reformat_retval=1
# probably others too :(
syntax_error_retval=65
set +e
out=$(dart format -o none --set-exit-if-changed "$file")
exitval="$?"
out=$("$WF_ROOT"/./dart_format.sh "$file")
retval="$?"
set -e
retval="$exitval"
else
echo -n "ignoring"
exit 0