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

Merge pull request #14862 from vdemeester/validate-lint-all-files

Update validate-lint to lint all go files
This commit is contained in:
Alexander Morozov 2015-07-22 15:18:02 -07:00
commit 3198e76b77

View file

@ -41,7 +41,9 @@ packages=(
errors=() errors=()
for p in "${packages[@]}"; do 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 if [ "$failedLint" ]; then
errors+=( "$failedLint" ) errors+=( "$failedLint" )
fi fi