Skip to content

Commit

Permalink
Added a codeclimate configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
VisLab committed Nov 3, 2024
1 parent 235c25d commit f5843ee
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 0 deletions.
83 changes: 83 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -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'
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f5843ee

Please sign in to comment.