Skip to content

Commit

Permalink
Introduced Codeclimate
Browse files Browse the repository at this point in the history
  • Loading branch information
soumeh01 authored Oct 25, 2023
1 parent 607686f commit a4555b8
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,15 @@ jobs:
run: |
make coverage-check
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
if: always()
continue-on-error: true
- name: Publish coverage report to Code Climate
if: ${{ startsWith(matrix.runs-on, 'ubuntu') }}
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
files: cover.out
os: ${{ matrix.goos }}
fail_ci_if_error: true
functionalities: fix
debug: true
coverageLocations: ./cover.out:gocov
prefix: github.com/open-cmsis-pack/cpackget

test-linux-arm64:
name: "linux | arm64"
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
[![Go Report Card](https://goreportcard.com/badge/github.com/open-cmsis-pack/cpackget)](https://goreportcard.com/report/github.com/open-cmsis-pack/cpackget)
[![GoDoc](https://godoc.org/github.com/open-cmsis-pack/cpackget?status.svg)](https://godoc.org/github.com/open-cmsis-pack/cpackget)

[![Maintainability](https://api.codeclimate.com/v1/badges/eea6cb90a9a1e39bcff7/maintainability)](https://codeclimate.com/github/Open-CMSIS-Pack/cpackget/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/eea6cb90a9a1e39bcff7/test_coverage)](https://codeclimate.com/github/Open-CMSIS-Pack/cpackget/test_coverage)

# cpackget: Open-CMSIS-Pack Package Installer

This utility allows embedded developers to install (or uninstall) Open-CMSIS-Pack software packs to their local
Expand Down
22 changes: 22 additions & 0 deletions scripts/.codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: "2"
checks:
argument-count:
enabled: false
complex-logic:
enabled: false
identical-code:
enabled: true
file-lines:
enabled: false
method-complexity:
enabled: false
method-count:
enabled: false
method-lines:
enabled: false
nested-control-flow:
enabled: false
return-statements:
enabled: false
similar-code:
enabled: true

0 comments on commit a4555b8

Please sign in to comment.