github.com/jancarloviray/community@v0.41.1-0.20170124221257-33a66c87cf2f/gocheck.sh (about)

     1  # Copyright 2013-2014 Documize (http://www.documize.com)
     2  
     3  # run github.com/alecthomas/gometalinter to check correctness, style and error handling
     4  # also check spelling with github.com/client9/misspell
     5  # Only set up to look at non-vendored code, should be run from top level
     6  for dir in $(find core sdk plugin-* -type d -print | grep -v -e "web" | grep -v -e "templates" | sort | tr '\n' ' ') 
     7  do
     8  	echo "*** " $dir
     9      gometalinter --vendor --disable='gotype' --deadline=30s $dir | sort 
    10      misspell $dir/*.go
    11  done
    12  
    13  # run github.com/FiloSottile/vendorcheck (including tests)
    14  echo "*** vendorcheck"
    15  for dir in core sdk 
    16  do 
    17      cd $dir
    18      vendorcheck -t . | grep -v 'github.com/documize/community'
    19      cd ..
    20  done
    21