Ignore individual functions with gocyclo:ignore
mainYou can exclude specific functions from complexity analysis by adding the //gocyclo:ignore directive directly above the function or variable declaration.
//gocyclo:ignore
func f1() {
// ...
}
//gocyclo:ignore
var f2 = func() {
// ...
}