forked from harmony-one/harmony
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Factor golint validation into a script
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-place
- Loading branch information
Eugene Kim
committed
Jan 25, 2019
1 parent
97809dd
commit bb3d29f
Showing
2 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters