Skip to content

Commit 47d40b2

Browse files
committed
Allow softassert in forbidigo rule
1 parent f9b2f6d commit 47d40b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ linters:
4848
msg: "FunctionalTestBase is deprecated. Use testcore.NewEnv(t) instead. See docs/development/testing.md for details."
4949
- pattern: context\.Background\(\)
5050
msg: "Avoid context.Background() in tests; use t.Context() to respect test timeouts and cancellation"
51-
- pattern: 'assert\.\w+'
51+
- pattern: '^(proto)?assert\.\w+$'
5252
msg: "Use require.X / protorequire.X instead of assert.X / protoassert.X — assert doesn't stop the test on failure. assert.CollectT is still allowed for EventuallyWithT callbacks."
5353
depguard:
5454
rules:

0 commit comments

Comments
 (0)