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:
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 4ef4e7da7..db6ed2d7e 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -58,6 +58,12 @@ linters-settings:
# they're tested as expected.
- ^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.
+ - ^os.Setenv$
+ - ^os.Unsetenv$
stylecheck:
# ST1000 checks for missing package comments. We don't use these for most
# packages, so let's disable this check.