gocognit: Lower complexity threshold to 100, fix a few complexity issues (#10542)

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
Preston Van Loon
2022-04-19 09:12:24 +02:00
committed by GitHub
parent 32ebe94515
commit 80ebbcf03e
4 changed files with 23 additions and 28 deletions

View File

@@ -31,7 +31,7 @@ var Analyzer = &analysis.Analyzer{
// > 50 Untestable code, very high risk
//
// This threshold should be lowered to 50 over time.
const over = 130
const over = 100
func run(pass *analysis.Pass) (interface{}, error) {
inspect, ok := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector)