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