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>2021-04-15 21:58:19 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2021-04-19 09:51:32 +0300
commiteab58f4482dc44df126d8f67eecb1e475817549a (patch)
tree29ea68eda9eef76ad5caac933684db5923a01fc5 /.golangci.yml
parentcf5b8f9ef470ad0d0b382c24c064e2facd268c49 (diff)
global: Do not ignore write errors
We're currently missing error checks for various invocations of `Write()` functions. Fix this issue by properly checking returned errors and drop the corresponding linter ignore rule.
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 58afab9de..cc34057ab 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -720,7 +720,7 @@ issues:
## errcheck: General (wide) rules in non-*_test.go files
- linters:
- errcheck
- text: "Error return value of `[^`]+.(Write|Close|Serve)` is not checked"
+ text: "Error return value of `[^`]+.(Close|Serve)` is not checked"
- linters:
- errcheck
text: "Error return value of `(io\\.Copy|out\\.Flush|os\\.Remove(All)?)` is not checked"