-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to golangci-lint for the gocheck target
Signed-off-by: Arjun Naik <anaik@redhat.com>
- Loading branch information
Arjun Naik
committed
Aug 26, 2020
1 parent
e1c4485
commit 046c698
Showing
5 changed files
with
28 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
GOLANGCI_LINT_VERSION="1.30.0" | ||
DEPENDENCY=${1:-} | ||
|
||
case "${DEPENDENCY}" in | ||
golangci-lint) | ||
GOPATH=$(go env GOPATH) | ||
if [ ! -f "${GOPATH}/bin/golangci-lint" ]; then | ||
DOWNLOAD_URL="https://github.com/golangci/golangci-lint/releases/download/v${GOLANGCI_LINT_VERSION}/golangci-lint-${GOLANGCI_LINT_VERSION}-linux-amd64.tar.gz" | ||
curl -sfL "${DOWNLOAD_URL}" | tar -C "${GOPATH}/bin" -zx --strip-components=1 "golangci-lint-${GOLANGCI_LINT_VERSION}-linux-amd64/golangci-lint" | ||
fi | ||
;; | ||
esac |
6 changes: 6 additions & 0 deletions
6
boilerplate/openshift/golang_osd_cluster_operator/golangci.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# options for analysis running | ||
run: | ||
# default concurrency is a available CPU number | ||
concurrency: 10 | ||
# timeout for analysis, e.g. 30s, 5m, default is 1m | ||
timeout: 2m |
92 changes: 0 additions & 92 deletions
92
boilerplate/openshift/golang_osd_cluster_operator/golint.sh
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters