From 2b2857bd2191458a131689502224abfe9cdd7a4a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 4 Jun 2020 23:07:55 +0200 Subject: .golangci.yml: enable funlen checker Checks for too long functions (based on lines and statements). --- pkg/ifuzz/encode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/ifuzz/encode.go') 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") -- cgit mrf-deployment