소스 검색

Move the golangci-lint configuration file to the root dir

This will help other tools and IDEs find our lint configuration

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
Djordje Lukic 1 년 전
부모
커밋
d60de4cafd
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 0
      .golangci.yml
  2. 2 2
      hack/validate/golangci-lint

+ 0 - 0
hack/validate/golangci-lint.yml → .golangci.yml


+ 2 - 2
hack/validate/golangci-lint

@@ -1,7 +1,7 @@
 #!/usr/bin/env bash
 set -e -o pipefail
 
-SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
+REPODIR="$(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
@@ -24,4 +24,4 @@ GOGC=75 golangci-lint run \
 	--print-resources-usage \
 	--build-tags="${DOCKER_BUILDTAGS}" \
 	--verbose \
-	--config "${SCRIPTDIR}/golangci-lint.yml"
+	--config "${REPODIR}/.golangci.yml"