diff --git a/rules.go b/rules.go index b94342ba..999fe520 100644 --- a/rules.go +++ b/rules.go @@ -268,7 +268,7 @@ func gocriticDupArg(m fluent.Matcher) { `bytes.Replace($_, $x, $x, $_)`, `reflect.Copy($x, $x)`, `reflect.DeepEqual($x, $x)`, - `types.Identical($x, $y)`, + `types.Identical($x, $x)`, `io.Copy($x, $x)`, `copy($x, $x)`). Report(`suspicious duplicated args in $$`)