Skip to content

Commit

Permalink
Linter should ignore tests and code unchanged from stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
veqryn committed Mar 18, 2024
1 parent 62d0480 commit 3204791
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
run:
tests: false
skip-dirs:
- internal/buffer
1 change: 1 addition & 0 deletions handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,7 @@ func TestJSONAppendAttrValueSpecial(t *testing.T) {
{io.EOF, `"EOF"`},
} {
got := jsonValueString(slog.AnyValue(test.value))
got = strings.ReplaceAll(got, "unable to", "cannot")
if got != test.want {
t.Errorf("%v: got %s, want %s", test.value, got, test.want)
}
Expand Down

0 comments on commit 3204791

Please sign in to comment.