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:
authorPavlo Strokov <pstrokov@gitlab.com>2021-08-04 14:26:59 +0300
committerPavlo Strokov <pstrokov@gitlab.com>2021-08-09 10:59:36 +0300
commit5954eb119126a97c80a0d6e69114b8e1bc349b7e (patch)
tree8a31c5dfe07c54088d8ebfadb906a40a80ab0a8f /.golangci.yml
parent23842e500b6c90e1f462c78b497a8af8d1d6c8a6 (diff)
lint: Handle error returned by io.Copy
The change removes io.Copy from lint rules exclusion and fixes all the places where it causes the issue.
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 18171951f..e499c84a5 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -573,7 +573,7 @@ issues:
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"
+ text: "Error return value of `(out\\.Flush|os\\.Remove(All)?)` is not checked"
## errcheck: Specific issues in non-*_test.go files
- linters:
- errcheck