This script (scripts/golint.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
97809dd0dd
commit
bb3d29f476
@ -0,0 +1,8 @@ |
||||
#!/bin/sh |
||||
unset -v progdir |
||||
case "${0}" in |
||||
*/*) progdir="${0%/*}";; |
||||
*) progdir=.;; |
||||
esac |
||||
"${progdir}/list_harmony_go_files.sh" | "${progdir}/dirnames.sh" | \ |
||||
sort -u -t/ | xargs golint "$@" |
Loading…
Reference in new issue