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
// If you want to add/modify an existing linter, please check out ruleguard's documentation: https://github.com/quasilyte/go-ruleguard#documentation
package gorules
import (
"github.com/quasilyte/go-ruleguard/dsl"
)
// This is a custom linter that checks ensures a use of require.Equal
func EqualInsteadOfTrue(m dsl.Matcher) {
m.Match(`require.True($t, $x == $y, $*args)`).
Suggest(`require.Equal($t, $x, $y, $args)`).
Report(`use require.Equal instead of require.True`)