This script (scripts/goimports.sh) handily exempts vendored and generated files. Sample usage: * “scripts/goimports.sh -d -e” → show full diff * “scripts/goimports.sh -w” → fix files in-placepull/321/head
parent
ecd1977c05
commit
97809dd0dd
@ -0,0 +1,7 @@ |
||||
#!/bin/sh |
||||
unset -v progdir |
||||
case "${0}" in |
||||
*/*) progdir="${0%/*}";; |
||||
*) progdir=.;; |
||||
esac |
||||
"${progdir}/list_harmony_go_files.sh" | xargs goimports "$@" |
Loading…
Reference in new issue