Merge pull request #7405 from heyitsanthony/fast-gosimple
test: run unused and gosimple over all packages at oncerelease-3.2
commit
763aef87b9
24
test
24
test
|
@ -224,26 +224,22 @@ function fmt_pass {
|
||||||
|
|
||||||
if which gosimple >/dev/null; then
|
if which gosimple >/dev/null; then
|
||||||
echo "Checking gosimple..."
|
echo "Checking gosimple..."
|
||||||
for path in $GOSIMPLE_UNUSED_PATHS; do
|
simplResult=`gosimple ${GOSIMPLE_UNUSED_PATHS} 2>&1 || true`
|
||||||
simplResult=`gosimple ${path} 2>&1 || true`
|
if [ -n "${simplResult}" ]; then
|
||||||
if [ -n "${simplResult}" ]; then
|
echo -e "gosimple checking failed:\n${simplResult}"
|
||||||
echo -e "gosimple checking ${path} failed:\n${simplResult}"
|
exit 255
|
||||||
exit 255
|
fi
|
||||||
fi
|
|
||||||
done
|
|
||||||
else
|
else
|
||||||
echo "Skipping gosimple..."
|
echo "Skipping gosimple..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if which unused >/dev/null; then
|
if which unused >/dev/null; then
|
||||||
echo "Checking unused..."
|
echo "Checking unused..."
|
||||||
for path in $GOSIMPLE_UNUSED_PATHS; do
|
unusedResult=`unused ${GOSIMPLE_UNUSED_PATHS} 2>&1 || true`
|
||||||
unusedResult=`unused ${path} 2>&1 || true`
|
if [ -n "${unusedResult}" ]; then
|
||||||
if [ -n "${unusedResult}" ]; then
|
echo -e "unused checking failed:\n${unusedResult}"
|
||||||
echo -e "unused checking ${path} failed:\n${unusedResult}"
|
exit 255
|
||||||
exit 255
|
fi
|
||||||
fi
|
|
||||||
done
|
|
||||||
else
|
else
|
||||||
echo "Skipping unused..."
|
echo "Skipping unused..."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue