diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-04-15 21:58:19 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-04-19 09:51:32 +0300 |
commit | eab58f4482dc44df126d8f67eecb1e475817549a (patch) | |
tree | 29ea68eda9eef76ad5caac933684db5923a01fc5 /.golangci.yml | |
parent | cf5b8f9ef470ad0d0b382c24c064e2facd268c49 (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.yml | 2 |
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" |