From 8b573c94895dc0ac0e1d9d59cf3e8745e8b539ca Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 17 Dec 2020 11:59:07 +0000 Subject: Add latest changes from gitlab-org/gitlab@13-7-stable-ee --- workhorse/_support/lint.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 workhorse/_support/lint.sh (limited to 'workhorse/_support/lint.sh') diff --git a/workhorse/_support/lint.sh b/workhorse/_support/lint.sh new file mode 100755 index 00000000000..b016f088d80 --- /dev/null +++ b/workhorse/_support/lint.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# Unfortunately, workhorse fails many lint checks which we currently ignore +LINT_RESULT=$(golint "$@"|grep -Ev 'should have|should be|use ALL_CAPS in Go names') + +if [ -n "${LINT_RESULT}" ]; then + echo >&2 "Formatting or imports need fixing: 'make fmt'" + echo ">>${LINT_RESULT}<<" + exit 1 +fi + -- cgit v1.2.3