This commit is contained in:
Andrew Morgan 2019-05-29 16:40:44 +01:00
parent 6e79295822
commit 0b540635b7
2 changed files with 6 additions and 2 deletions

View file

@ -31,7 +31,8 @@ steps:
- "./scripts/find-lint.sh"
label: ":lower_left_crayon: Lint / :go: 1.12"
env:
GOGC: 5 # https://github.com/golangci/golangci-lint#memory-usage-of-golangci-lint
# https://github.com/golangci/golangci-lint#memory-usage-of-golangci-lint
GOGC: 5
plugins:
- docker#v3.0.1:
image: "golang:1.12"

View file

@ -3,10 +3,13 @@
# Runs the linters against dendrite
# The linters can take a lot of resources and are slow, so they can be
# configured using two environment variables:
# configured using the following environment variables:
#
# - `DENDRITE_LINT_CONCURRENCY` - number of concurrent linters to run,
# golangci-lint defaults this to NumCPU
# - `GOGC` - how often to perform garbage collection during golangci-lint runs.
# Essentially a ratio of memory/speed. See https://github.com/golangci/golangci-lint#memory-usage-of-golangci-lint
# for more info.
set -eux