1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-25 22:12:38 +02:00

fix: error-strings custom funcs overwrites defaults (#1249)

This commit is contained in:
Oleksandr Redko
2025-02-26 23:16:06 +02:00
committed by GitHub
parent 9177f5044a
commit 67d0a61a1b
4 changed files with 98 additions and 7 deletions

View File

@@ -13,3 +13,10 @@ func TestErrorStringsWithCustomFunctions(t *testing.T) {
Arguments: args,
})
}
func TestErrorStringsIssue1243(t *testing.T) {
args := []any{"errors.Wrap"}
testRule(t, "error_strings_issue_1243", &rule.ErrorStringsRule{}, &lint.RuleConfig{
Arguments: args,
})
}