-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace gometalinter with golangci-lint
Replacing gometalinter, because it has been deprecated, and the repository was archived. Signed-off-by: Sebastiaan van Stijn <[email protected]>
- Loading branch information
Showing
8 changed files
with
65 additions
and
56 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
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,11 @@ | ||
#!/bin/sh | ||
|
||
: "${GOLANGCI_LINT_COMMIT=v1.17.1}" | ||
|
||
install_golangci_lint() { | ||
echo "Installing golangci-lint version ${GOLANGCI_LINT_COMMIT}" | ||
go get -d github.com/golangci/golangci-lint/cmd/golangci-lint | ||
cd "$GOPATH/src/github.com/golangci/golangci-lint/" || exit 1 | ||
git checkout -q "${GOLANGCI_LINT_COMMIT}" | ||
go build -buildmode=pie -o "${PREFIX}/golangci-lint" "github.com/golangci/golangci-lint/cmd/golangci-lint" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
set -e -o pipefail | ||
|
||
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
||
# CI platforms differ, so per-platform GOLANGCI_LINT_OPTS can be set | ||
# from a platform-specific Dockerfile, otherwise let's just set | ||
# (somewhat pessimistic) default of 10 minutes. | ||
: ${GOLANGCI_LINT_OPTS=--deadline=20m} | ||
|
||
[ -n "${TESTDEBUG}" ] && set -x | ||
|
||
# TODO use --out-format=junit-xml and store artifacts | ||
GOGC=20 golangci-lint run \ | ||
${GOLANGCI_LINT_OPTS} \ | ||
--print-resources-usage \ | ||
--build-tags="${DOCKER_BUILDTAGS}" \ | ||
--verbose \ | ||
--config ${SCRIPTDIR}/golangci-lint.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,31 @@ | ||
linters: | ||
enable: | ||
- deadcode | ||
- gofmt | ||
- goimports | ||
- golint | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- unconvert | ||
|
||
disable: | ||
- errcheck | ||
|
||
run: | ||
concurrency: 2 | ||
modules-download-mode: vendor | ||
|
||
skip-dirs: | ||
- docs | ||
- integration-cli | ||
|
||
skip-files: | ||
- ".*\\.pb\\.go" | ||
- "dockerversion/version_autogen.go" | ||
- "api/types/container/container_.*" | ||
- "api/types/volume/volume_.*" | ||
|
||
linters-settings: | ||
govet: | ||
check-shadowing: false |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.