Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/testutils/lint: add a linter rule to block call to debug.Stack()
Some of the previous commits addressed the unnecessary redaction of stack traces by replacing uses of debug.Stack() with debugutil.Stack(). The new function ensures proper handling of redaction. This commit future-proofs the solution by adding a linter rule to block future uses of debug.Stack(). The linter error will prompt users to use debugutil.Stack() instead. Part of: CRDB-15292 Epic: CRDB-37533 Release note: None
- Loading branch information