Skip to content

Commit

Permalink
Adds CodeClimate config (#50)
Browse files Browse the repository at this point in the history
This is based on the configuration from the CLI project to provide some
consistency.

Fixes #10.
  • Loading branch information
mscottford authored Sep 17, 2023
2 parents 3fa732d + e2c3151 commit eb8170a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: "2"
exclude_patterns:
- "Corgibytes.Freshli.Agent.DotNet/obj/**"
- "Corgibytes.Freshli.Agent.DotNet.Test/**"
- "**/*.Designer.cs"

checks:
method-lines:
config:
threshold: 65
file-lines:
config:
threshold: 300
method-count:
config:
threshold: 25
argument-count:
enabled: true
config:
threshold: 7
similar-code:
enabled: false
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,15 @@ jobs:
run: |
ruby bin/lint.rb
- name: "[Test]"
- name: "[Test] - Test and Collect Code Coverage"
run: |
ruby bin/test.rb
dotnet coverlet ./exe --target "ruby" --targetargs 'bin/test.rb --skip-build' --format lcov
- name: "[Test] - Send Code Coverage Data to Code Climate"
uses: paambaati/[email protected]
if: ${{ github.actor != 'dependabot[bot]' && runner.os != 'Windows' }}
env:
CC_TEST_REPORTER_ID: ${{ secrets.TEST_REPORTER_ID }}
with:
coverageLocations: |
${{github.workspace}}/coverage.info:lcov

0 comments on commit eb8170a

Please sign in to comment.