From 73ed5fb4a4deadf141b44dd100cc1ad8a63420c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Math=C3=ADas=20Cabano?= Date: Thu, 29 Oct 2020 12:19:56 -0300 Subject: [PATCH] Set up Code Climate --- .codeclimate.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .codeclimate.yml diff --git a/.codeclimate.yml b/.codeclimate.yml new file mode 100644 index 0000000..34de070 --- /dev/null +++ b/.codeclimate.yml @@ -0,0 +1,34 @@ +version: "2" # required to adjust maintainability checks +checks: + argument-count: + config: + threshold: 8 + complex-logic: + config: + threshold: 5 + file-lines: + config: + threshold: 500 + method-complexity: + config: + threshold: 5 + method-count: + config: + threshold: 20 + method-lines: + config: + threshold: 25 + nested-control-flow: + config: + threshold: 3 + return-statements: + enabled: false + similar-code: + config: + threshold: # language-specific defaults. an override will affect all languages. + identical-code: + config: + threshold: # language-specific defaults. an override will affect all languages. +plugins: + swiftlint: + enabled: true