The analyzer has detected a suspicious sequence of arguments passed to a method. Perhaps, some arguments are misplaced.
The example:
func SetARGB(a, r, g, b byte) { .... }
func Foo(A, R, G, B byte) {
var A, R, G, B byte
....
SetARGB(A, R, B, G)
}
When calling the SetARGB function, the B and G arguments were swapped.
The fixed code:
func SetARGB(a, r, g, b byte) { .... }
func Foo(A, R, G, B byte) {
var A, R, G, B byte
....
SetARGB(A, R, G, B)
}
This diagnostic rule is classified as:
Was this page helpful?