You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The error-strings rule uses the package name as the key to the errorFunctions map. If the arguments list has multiple functions under the same package like a.Wrap and a.New, the last function is linted against.
To Reproduce
Configure error-strings with error functions in the same package. e.g. errors.New will overwrite the default map.
Expected behavior
Allow multiple functions in the same package to be linted against.
The text was updated successfully, but these errors were encountered:
Thank you for reporting this issue. To help us investigate further, could you please provide minimal steps to reproduce the problem? Specifically, we need a sample file with the relevant code and the actual/expected output.
Describe the bug
The
error-strings
rule uses the package name as the key to the errorFunctions map. If the arguments list has multiple functions under the same package likea.Wrap
anda.New
, the last function is linted against.To Reproduce
Configure
error-strings
with error functions in the same package. e.g.errors.New
will overwrite the default map.Expected behavior
Allow multiple functions in the same package to be linted against.
The text was updated successfully, but these errors were encountered: