From ef5716f8d647ba1a0480702618219ba639f01eb4 Mon Sep 17 00:00:00 2001 From: Michael Koppmann Date: Wed, 5 Oct 2016 02:26:25 +0200 Subject: [PATCH] Replaced scripts/golint.sh with built-in golint flag. (#17) * Replaced scripts/golint.sh with built-in golint flag. Fixes issue #16. Should I delete the scripts/golint.sh? * Added @mkoppmann to the AUTHORS file. * Delete golint.sh as it is not needed anymore --- .travis.yml | 2 +- AUTHORS | 1 + scripts/golint.sh | 12 ------------ 3 files changed, 2 insertions(+), 13 deletions(-) delete mode 100755 scripts/golint.sh diff --git a/.travis.yml b/.travis.yml index bf8de0c..303291c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,6 @@ before_script: script: - ./scripts/licensecheck.sh - go build ./... - - ./scripts/golint.sh + - golint -set_exit_status ./... - go vet ./... - go test -v ./... diff --git a/AUTHORS b/AUTHORS index dd3b999..1f0d4f6 100644 --- a/AUTHORS +++ b/AUTHORS @@ -12,3 +12,4 @@ Contributors Justin Kim Ricky Medina Charlie Drage +Michael Koppmann diff --git a/scripts/golint.sh b/scripts/golint.sh deleted file mode 100755 index 54696d7..0000000 --- a/scripts/golint.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -# Verify that all files are correctly golint'd. -EXIT=0 -GOLINT=$(golint ./...) - -if [[ ! -z $GOLINT ]]; then - echo $GOLINT - EXIT=1 -fi - -exit $EXIT