mirror of
https://github.com/mgechev/revive.git
synced 2025-11-25 22:12:38 +02:00
refactor: rename files to follow Go convention
This commit is contained in:
committed by
chavacava
parent
c0d4d07ab6
commit
be95bfa705
14
testdata/modifies_value_receiver.go
vendored
Normal file
14
testdata/modifies_value_receiver.go
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
package fixtures
|
||||
|
||||
type data struct {
|
||||
num int
|
||||
key *string
|
||||
items map[string]bool
|
||||
}
|
||||
|
||||
func (this data) vmethod() {
|
||||
this.num = 8 // MATCH /suspicious assignment to a by-value method receiver/
|
||||
*this.key = "v.key"
|
||||
this.items = make(map[string]bool) // MATCH /suspicious assignment to a by-value method receiver/
|
||||
this.items["vmethod"] = true
|
||||
}
|
||||
Reference in New Issue
Block a user