mirror of
https://github.com/mgechev/revive.git
synced 2025-11-27 22:18:41 +02:00
renames fixtures as testdata to avoid spurious dependencies (#359)
This commit is contained in:
17
testdata/argument-limit.go
vendored
Normal file
17
testdata/argument-limit.go
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
package fixtures
|
||||
|
||||
func foo(a, b, c, d int) { // MATCH /maximum number of arguments per function exceeded; max 3 but got 4/
|
||||
|
||||
}
|
||||
|
||||
func bar(a, b int) {
|
||||
|
||||
}
|
||||
|
||||
func baz(a string, b int) {
|
||||
|
||||
}
|
||||
|
||||
func qux(a string, b int, c int, d string, e int64) { // MATCH /maximum number of arguments per function exceeded; max 3 but got 5/
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user