Skip to content

Commit

Permalink
Merge pull request #13 from FreeRTOS/Add-Code-Complexity-Check
Browse files Browse the repository at this point in the history
Add Code complexity check
  • Loading branch information
AniruddhaKanhere authored Oct 1, 2020
2 parents f7fd31b + 5246c3f commit c9e2a2f
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ jobs:
lcov --rc lcov_branch_coverage=1 --remove test/unit-test/build/coverage.info '*third-party*' --output-file test/unit-test/build/coverage.info
lcov --rc lcov_branch_coverage=1 --remove test/unit-test/build/coverage.info '*mocks*' --output-file test/unit-test/build/coverage.info
lcov --list test/unit-test/build/coverage.info
#- name: lcov-cop
# uses: ChicagoFlutter/lcov-cop@v1.0.2
# with:
# path: "build/coverage.info"
# min_coverage: 99
# exclude: "**/*test*"
formatting:
runs-on: ubuntu-latest
Expand All @@ -65,3 +59,14 @@ jobs:
else
exit 0
fi
complexity:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup
run: sudo apt-get install complexity
- name: Complexity
run: |
find . -iname '*.c' |\
xargs complexity --scores --threshold=0 --horrid-threshold=55

0 comments on commit c9e2a2f

Please sign in to comment.