Merge pull request #46728 from rumpl/golangci-lint

Move the golangci-lint configuration file to the root dir
This commit is contained in:
Sebastiaan van Stijn 2023-10-30 18:55:17 +01:00 committed by GitHub
commit 171f153e2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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"