Skip to content

Commit

Permalink
Configured code climate test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
shivam091 committed Jul 1, 2023
1 parent ae2b9f3 commit 7e95849
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
version: "2"
checks:
argument-count:
enabled: true
config:
threshold: 4
complex-logic:
enabled: true
config:
threshold: 4
file-lines:
enabled: true
config:
threshold: 250
method-complexity:
enabled: true
config:
threshold: 5
method-count:
enabled: true
config:
threshold: 20
method-lines:
enabled: true
config:
threshold: 25
nested-control-flow:
enabled: true
config:
threshold: 4
return-statements:
enabled: true
config:
threshold: 4
exclude_patterns:
- "config/"
- "db/"
- "dist/"
- "features/"
- "**/node_modules/"
- "script/"
- "**/spec/"
- "**/test/"
- "**/tests/"
- "**/vendor/"
- "**/*.d.ts"
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
env:
RAILS_ENV: test
DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test"
CC_TEST_REPORTER_ID: f7dc26d97d2d636e50bcb811728bdbc9956de60045a2ed68c74c82a0d70ae77a
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
Expand All @@ -44,5 +45,7 @@ jobs:
bundle exec rake db:migrate
- name: Run test cases
run: bundle exec rspec
- name: Publish code coverage
uses: paambaati/codeclimate-action@v4.0.0
# - name: Rubocop
# run: bundle exec rubocop --autocorrect

0 comments on commit 7e95849

Please sign in to comment.