aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/ifuzz/encode.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-06-04 23:07:55 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-06-05 12:23:19 +0200
commit2b2857bd2191458a131689502224abfe9cdd7a4a (patch)
tree1b27643621dc8e8174302291b8dd3e093c307932 /pkg/ifuzz/encode.go
parent2fcb2b5c16e21d2a94741e19bbe7443d88127273 (diff)
.golangci.yml: enable funlen checker
Checks for too long functions (based on lines and statements).
Diffstat (limited to 'pkg/ifuzz/encode.go')
-rw-r--r--pkg/ifuzz/encode.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/ifuzz/encode.go b/pkg/ifuzz/encode.go
index dd884bb61..5d27a29fd 100644
--- a/pkg/ifuzz/encode.go
+++ b/pkg/ifuzz/encode.go
@@ -11,7 +11,7 @@ import (
"math/rand"
)
-// nolint: gocyclo, nestif, gocognit
+// nolint: gocyclo, nestif, gocognit, funlen
func (insn *Insn) Encode(cfg *Config, r *rand.Rand) []byte {
if !insn.isCompatible(cfg) {
panic("instruction is not suitable for this mode")