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

thanos / ex_editor / 24255485493 / 1
87%
main: 87%

Build:
DEFAULT BRANCH: main
Ran 10 Apr 2026 05:28PM UTC
Files 10
Run time 0s
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

10 Apr 2026 05:25PM UTC coverage: 86.667% (+0.6%) from 86.032%
24255485493.1

push

github

thanos
refactor: reduce cyclomatic complexity in json_field and code_snippet

Reduce function complexity to meet credo standards (max 9):

1. DemoWeb.Admin.Fields.JsonField.render_form
   - Before: 13 (too complex)
   - After: 5 (extracted helpers)
   - Extracted: extract_content/2, format_error_messages/1, helper predicates

2. Demo.CMS.CodeSnippet.parse_json_field
   - Before: 10 (too complex)
   - After: 4 (extracted helpers)
   - Extracted: parse_json_value/3 with pattern matching

Changes improve code maintainability and readability:
- Extracted content extraction logic into separate functions
- Used guard clauses and pattern matching effectively
- Reduced nesting depth in conditional logic
- All tests still passing (30/30)
- Credo now reports: found no issues

273 of 315 relevant lines covered (86.67%)

28.92 hits per line

Source Files on job 24255485493.1
  • Tree
  • List 10
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 24255485493
  • 667b6ac7 on github
  • Prev Job for on main (#24215940305.1)
  • Next Job for on main (#24255705451.1)
  • Delete
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