Our website uses cookies to enhance your browsing experience.
Accept
to the top
>
>
>
V8034. Potentially incorrect order...
menu mobile close menu
Additional information
toggle menu Contents

V8034. Potentially incorrect order of arguments passed to a function.

Aug 06 2026

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)
}