From a5ba8a550827cba23681786d8266c62b95d1156a Mon Sep 17 00:00:00 2001 From: Dominik Schulz Date: Thu, 4 Jan 2018 14:14:54 +0100 Subject: [PATCH] Adjust codeclimate and codecov settings (#603) --- .codeclimate.yml | 34 ++++++++++++++++++++++++++++++++-- .codecov.yml | 6 ++++++ 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 .codecov.yml diff --git a/.codeclimate.yml b/.codeclimate.yml index c826df3409..ecdb35990c 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -1,4 +1,32 @@ -engines: +version: "2" + +checks: + argument-count: + config: + threshold: 4 + complex-logic: + config: + threshold: 4 + file-lines: + config: + threshold: 250 + method-complexity: + config: + threshold: 16 + method-count: + config: + threshold: 20 + method-lines: + config: + threshold: 100 + nested-control-flow: + config: + threshold: 4 + return-statements: + config: + threshold: 4 + +plugins: gofmt: enabled: true golint: @@ -10,5 +38,7 @@ ratings: paths: - "**.go" -exclude_paths: +exclude_patterns: - "vendor/" +- "utils/notify/icon.go" +- "**/*_test.go" diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 0000000000..ba577396de --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,6 @@ +coverage: + range: 40..90 + round: nearest + precision: 2 +ignore: + - "vendor/"