Run errcheck directly instead of via gometalinter
@@ -145,7 +145,13 @@ build_command () {
linter_commands () {
echo "Running linter..."
- gometalinter.v1 --vendor --disable-all --enable=vet --enable=golint --enable=ineffassign --enable=goconst --enable=errcheck --skip=dashboardd --skip=importer -j 1 --deadline 1h --tests ./...
+ gometalinter.v1 --vendor --disable-all --enable=vet --enable=golint --enable=ineffassign --enable=goconst --tests ./...
+ if [ $? -ne 0 ]; then
+ echo "Linting failed..."
+ exit 1
+ fi
+
+ errcheck $(go list ./... | grep -v dashboardd | grep -v cli/commands/importer | grep -v agent/assetmanager)
if [ $? -ne 0 ]; then
echo "Linting failed..."
exit 1
