Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2022-07-06 10:05:17 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2022-07-07 07:50:27 +0300
commitbf214c40cdea0f390e885298d7cf74056c68c6f2 (patch)
treed43a4be74eb9f28a1e530737248d3392f6a6c9f6 /.golangci.yml
parente34689502c46f6693006e259ed94e96ec3fa09b4 (diff)
global: Rewrite callers of `testhelper.ModifyEnvironment()`
Rewrite callers of `testhelper.ModifyEnviroment()`, which is about to be removed in favor of either `t.Setenv()` or `testhelper.Unsetenv()`.
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml5
1 files changed, 2 insertions, 3 deletions
diff --git a/.golangci.yml b/.golangci.yml
index db6ed2d7e..31c722364 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -59,9 +59,8 @@ linters-settings:
- ^context.Background$
- ^context.TODO$
# Tests should not set the bare environment functions, but instead use
- # `testhelper.ModifyEnvironment()`. This function has sanity checks to
- # verify we don't use `t.Parallel()` when setting envvars by using the
- # `t.Setenv()` helper.
+ # `t.Setenv()` or `testhelper.Unsetenv()`. These functions have sanity
+ # checks to verify we don't use `t.Parallel()` when setting envvars.
- ^os.Setenv$
- ^os.Unsetenv$
stylecheck: