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/"