From 845ddef2675008fb397869140263312875b1fee0 Mon Sep 17 00:00:00 2001 From: Adam Kroon Date: Mon, 24 Jun 2024 10:47:47 -0700 Subject: [PATCH] MVP-347: Add Code Climate Config --- .codeclimate.yaml | 54 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .codeclimate.yaml diff --git a/.codeclimate.yaml b/.codeclimate.yaml new file mode 100644 index 0000000..ea82024 --- /dev/null +++ b/.codeclimate.yaml @@ -0,0 +1,54 @@ +version: "2" + +checks: + argument-count: + enabled: true + config: + threshold: 3 + complex-logic: + enabled: true + config: + threshold: 3 + file-lines: + enabled: true + config: + threshold: 150 + method-complexity: + enabled: true + config: + threshold: 5 + method-count: + enabled: true + config: + threshold: 20 + method-lines: + enabled: true + config: + threshold: 40 + nested-control-flow: + enabled: true + config: + threshold: 3 + return-statements: + enabled: true + config: + threshold: 4 + similar-code: + enabled: false + config: + threshold: #language-specific defaults. overrides affect all languages. + identical-code: + enabled: true + config: + threshold: #language-specific defaults. overrides affect all languages. + +exclude_patterns: + - "build/" + - "dist/" + - "**/node_modules/" + - "**/scripts/" + - "**/*.d.ts" + - "techdocs/" + - "**/__tests__/" + - ".github/" + - "**/.docker/"