mirror of
https://github.com/mgechev/revive.git
synced 2025-11-23 22:04:49 +02:00
check clear/max/min in redefines-builtin-id rule on go1.21+ (#1024)
* check clear/max/min in redefines-builtin-id rule on go1.21+ * Update rule/redefines-builtin-id.go Co-authored-by: Denis Voytyuk <5462781+denisvmedia@users.noreply.github.com> --------- Co-authored-by: Denis Voytyuk <5462781+denisvmedia@users.noreply.github.com>
This commit is contained in:
9
testdata/redefines-builtin-id.go
vendored
9
testdata/redefines-builtin-id.go
vendored
@@ -32,3 +32,12 @@ var i, copy int // MATCH /redefinition of the built-in function copy/
|
||||
|
||||
// issue #792
|
||||
type ()
|
||||
|
||||
func foo() {
|
||||
clear := 0 // MATCH /redefinition of the built-in function clear/
|
||||
max := 0 // MATCH /redefinition of the built-in function max/
|
||||
min := 0 // MATCH /redefinition of the built-in function min/
|
||||
_ = clear
|
||||
_ = max
|
||||
_ = min
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user