From d939fd4f56322475560b5afa47fa3b3d5a80d79d Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Wed, 15 Dec 2021 12:03:45 +0100 Subject: [PATCH] Add codeclimate config [why] Code Climate configuration for Python is per default rather restrictive and would force us to split all stuff into too many files. [how] Have some faith in the cognitive capabilities of people. Signed-off-by: Fini Jastrow --- .codeclimate.yml | 14 ++++++++++++++ .dockerignore | 1 + 2 files changed, 15 insertions(+) create mode 100644 .codeclimate.yml diff --git a/.codeclimate.yml b/.codeclimate.yml new file mode 100644 index 000000000..c0bb1c130 --- /dev/null +++ b/.codeclimate.yml @@ -0,0 +1,14 @@ +version: "2" +checks: + file-lines: + config: + threshold: 500 + method-complexity: + config: + threshold: 9 + method-count: + config: + threshold: 30 + method-lines: + config: + threshold: 50 diff --git a/.dockerignore b/.dockerignore index 6d9834014..1100907dd 100644 --- a/.dockerignore +++ b/.dockerignore @@ -2,3 +2,4 @@ !src/glyphs !font-patcher !bin/scripts/docker-entrypoint.sh +!.codeclimate.yml