2016-07-07 18:54:16 -07:00
|
|
|
# Copyright 2013-2014 Documize (http://www.documize.com)
|
|
|
|
|
|
|
|
# run github.com/alecthomas/gometalinter to check correctness, style and error handling
|
|
|
|
# also check spelling with github.com/client9/misspell
|
|
|
|
# Only set up to look at non-vendored code, should be run from top level
|
2016-08-04 17:06:28 +01:00
|
|
|
for dir in $(find core sdk plugin-* -type d -print | grep -v -e "web" | grep -v -e "templates" | sort | tr '\n' ' ')
|
2016-07-07 18:54:16 -07:00
|
|
|
do
|
|
|
|
echo "*** " $dir
|
|
|
|
gometalinter --vendor --disable='gotype' --deadline=30s $dir | sort
|
|
|
|
misspell $dir/*.go
|
|
|
|
done
|
|
|
|
|
|
|
|
# run github.com/FiloSottile/vendorcheck (including tests)
|
|
|
|
echo "*** vendorcheck"
|
2016-08-04 17:06:28 +01:00
|
|
|
for dir in core sdk
|
2016-07-07 18:54:16 -07:00
|
|
|
do
|
|
|
|
cd $dir
|
|
|
|
vendorcheck -t . | grep -v 'github.com/documize/community'
|
|
|
|
cd ..
|
|
|
|
done
|
|
|
|
|