• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

elastic / cloudbeat / 7286172352
76%

Build:
DEFAULT BRANCH: main
Ran 21 Dec 2023 09:16AM UTC
Jobs 1
Files 155
Run time 15s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Dec 2023 09:13AM UTC coverage: 76.143% (-0.03%) from 76.17%
7286172352

push

github

web-flow
revive: Enable cognitive-complexity and cyclomatic (#1720)

cognitive-complexity: Start with a value of 30 instead of the default 7 which I find too restrictive.
cyclomatic: Start with 15 instead of default 10.

I've excluded all existing functions that fail the checks since refactoring them is a lot of work. The benefit of enabling the rules is that it's going to fail for hard-to-read functions in future code reviews.

Description: Cognitive complexity is a measure of how hard code is to understand. While cyclomatic complexity is good to measure "testability" of the code, cognitive complexity aims to provide a more precise measure of the difficulty of understanding the code. Enforcing a maximum complexity per function helps to keep code readable and maintainable.

Configuration: (int) the maximum function complexity

https://www.sonarsource.com/docs/CognitiveComplexity.pdf

cyclomatic

Description: Cyclomatic complexity is a measure of code complexity. Enforcing a maximum complexity per function helps to keep code readable and maintainable.

Configuration: (int) the maximum function complexity

5614 of 7373 relevant lines covered (76.14%)

9.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7286172352.1 21 Dec 2023 09:16AM UTC 0
76.14
GitHub Action Run
Source Files on build 7286172352
Detailed source file information is not available for this build.
  • Back to Repo
  • 575da402 on github
  • Prev Build on main (#7285908903)
  • Next Build on main (#7286292659)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc