1
0
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:
Oleksandr Redko
2024-11-11 13:39:10 +02:00
committed by chavacava
parent c0d4d07ab6
commit be95bfa705
299 changed files with 181 additions and 178 deletions

25
testdata/modifies_param.go vendored Normal file
View File

@@ -0,0 +1,25 @@
package fixtures
func one(a int) {
a, b := 1, 2 // MATCH /parameter 'a' seems to be modified/
a++ // MATCH /parameter 'a' seems to be modified/
}
func two(b, c float32) {
if c > 0.0 {
b = 1 // MATCH /parameter 'b' seems to be modified/
}
}
type foo struct {
a string
}
func three(s *foo) {
s.a = "foooooo"
}
// non regression test for issue 355
func issue355(_ *foo) {
_ = "foooooo"
}