Docker image to run the golan errcheck utilitt
264
errcheck toolExample using the oftee application
docker run -ti --rm -v $(pwd)/src/github.com/ciena/oftee:/go/src/github.com/ciena/oftee ciena/go-errcheck
Any flags specified at the end of the run command will be passed to the errcheck
binary.
This container uses the following bash hack to guess the packages on which
errcheck should be run.
find /go/src -name "*.go" | grep -v "\/vendor\/" | grep -v "\/\.git\/" | sed -e 's/\/[^\/]*\.go$//g' -e 's/\/go\/src\///g' | sort -u
docker pull ciena/go-errcheck:latest