Skip to content

Commit

Permalink
Lint ignore the files copied from stdlib:
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Weinstock <[email protected]>
  • Loading branch information
jacobweinstock committed Nov 27, 2024
1 parent 5cce2d2 commit fdb83a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ linters:
- whitespace

issues:
exclude-files:
- internal/iso/internal/reverseproxy.go
- internal/iso/internal/reverseproxy_test.go
- internal/iso/internal/acsii.go
- internal/iso/internal/acsii_test.go
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
- path: _test\.go
Expand Down
2 changes: 1 addition & 1 deletion internal/iso/iso.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (h *Handler) Copy(ctx context.Context, dst io.Writer, src io.Reader, buf []
var written int64
for {
nr, rerr := src.Read(buf)
if rerr != nil && rerr != io.EOF && rerr != context.Canceled {
if rerr != nil && rerr != io.EOF && rerr != context.Canceled { //nolint: errorlint // going to defer to the stdlib on this one.
h.Logger.Info("httputil: ReverseProxy read error during body copy: %v", rerr)
}
if nr > 0 {
Expand Down

0 comments on commit fdb83a4

Please sign in to comment.