From f2efcc3f10c2fe59bbcc14e06432d3d4ddfad370 Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Wed, 17 Jan 2018 13:40:49 +0100 Subject: [PATCH] Codeclimate: increase thresholds again. They're too low for Go. In go it doesn't matter if function returns 20 times. We need to do a lot of error checking and that's how it should be. Each of those error checks are 3 lines of code so it also doesn't matter if functions are a bit longer. License: MIT Signed-off-by: Hector Sanjuan --- .codeclimate.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.codeclimate.yml b/.codeclimate.yml index 2813e27b..869d5a30 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -11,9 +11,12 @@ checks: threshold: 12 method-lines: config: - threshold: 60 + threshold: 80 similar-code: enabled: false + return-statements: + config: + threshold: 10 engines: fixme: