From c714abff78687bc2218021b09fdb6a377c4a66b9 Mon Sep 17 00:00:00 2001 From: Shawn Smith Date: Fri, 5 May 2017 14:53:13 +0900 Subject: [PATCH] #184 add note in gocyclo description about threshold --- check/gocyclo.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/check/gocyclo.go b/check/gocyclo.go index 6027c23..d4e6318 100644 --- a/check/gocyclo.go +++ b/check/gocyclo.go @@ -28,5 +28,7 @@ func (g GoCyclo) Description() string { The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function -+1 for each 'if', 'for', 'case', '&&' or '||'` ++1 for each 'if', 'for', 'case', '&&' or '||' + +Go Report Card warns on functions with cyclomatic complexity > 15.` }