From f5843ee765d34ec0577a396bca80f789005530bc Mon Sep 17 00:00:00 2001 From: Kay Robbins <1189050+VisLab@users.noreply.github.com> Date: Sun, 3 Nov 2024 16:45:03 -0600 Subject: [PATCH] Added a codeclimate configuration --- .codeclimate.yml | 83 ++++++++++++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 1 + 2 files changed, 84 insertions(+) create mode 100644 .codeclimate.yml diff --git a/.codeclimate.yml b/.codeclimate.yml new file mode 100644 index 00000000..ca72574d --- /dev/null +++ b/.codeclimate.yml @@ -0,0 +1,83 @@ +version: '2' # required to adjust maintainability checks + +checks: + argument-count: + enabled: true + config: + threshold: 4 + complex-logic: + enabled: true + config: + threshold: 4 + file-lines: + enabled: true + config: + threshold: 300 + method-complexity: + enabled: true + config: + threshold: 5 + method-count: + enabled: true + config: + threshold: 20 + method-lines: + enabled: true + config: + threshold: 50 + nested-control-flow: + enabled: true + config: + threshold: 4 + return-statements: + enabled: true + config: + threshold: 4 + similar-code: + enabled: true + config: + threshold: #language-specific defaults. overrides affect all languages. + identical-code: + enabled: true + config: + threshold: #language-specific defaults. overrides affect all languages. + +exclude_patterns: + - 'config/' + - 'db/' + - 'dist/' + - 'features/' + - '**/node_modules/' + - 'script/' + - '**/spec/' + - '**/test/' + - '**/tests/' + - '**/spec_tests/' + - '**/docs/' + - 'Tests/' + - '**/vendor/' + - '**/*_test.go' + - '**/*.d.ts' + - '**/*__init__.py' + - '**/*setup.py' + - '**/setup.cfg' + - '**/static/' + - '**/constants/' + - '**/deploy_hed/' + - '**/README*' + - '**/.gitignore' + - '**/LICENSE' + - '**/examples/' + - '**/*.yml' + - '**/*.yaml' + - '**/config_template.py' + - '**/*.txt' + - '**/*.html' + - '**/.coveragerc' + - '**/*.md' + - '**/*.rst' + - '**/templates/' + - '**/conf.py' + - '**/deprecated/' + - '**/versioneer.py' + - '**/_version.py' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8943c2c0..eaea1a93 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,4 +47,5 @@ jobs: env: CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} with: + config: .codeclimate.yml coverageCommand: ./node_modules/.bin/jest --coverage --testPathIgnorePatterns=spec_tests