1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Update validate-lint to lint all go files

By default, using go with package will only validate the go file for the
current platform (or at last misses file_windows.go for example). This
tries to fix that.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester 2015-07-22 19:11:00 +02:00
parent fe68ac806b
commit fa34f07ec0

View file

@ -41,7 +41,9 @@ packages=(
errors=()
for p in "${packages[@]}"; do
failedLint=$(golint "$p")
# Run golint on package/*.go file explicitly to validate all go files
# and not just the ones for the current platform.
failedLint=$(golint "$p"/*.go)
if [ "$failedLint" ]; then
errors+=( "$failedLint" )
fi