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

stacklok / toolhive / 18496289564
62%

Build:
DEFAULT BRANCH: main
Ran 14 Oct 2025 12:25PM UTC
Jobs 1
Files 284
Run time 1min
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

14 Oct 2025 12:20PM UTC coverage: 46.675% (+0.03%) from 46.644%
18496289564

push

github

web-flow
Refactor buildRunnerConfig to reduce cyclomatic complexity (#2186)

* Refactor buildRunnerConfig to reduce cyclomatic complexity

Extract middleware configuration and remote authentication logic into
separate helper functions to reduce the cyclomatic complexity of
buildRunnerConfig from 16 to below the gocyclo threshold of 15.

Changes:
- Add configureMiddlewareAndOptions helper function to handle middleware
  setup, authorization config loading, and environment file processing
- Add configureRemoteAuth helper function to handle remote server
  metadata and direct remote URL authentication configuration
- Maintain all existing functionality while improving code organization

Fixes linter error: "cyclomatic complexity 16 of func buildRunnerConfig
is high (> 15)"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Fix runFlags parameter passing in getRemoteAuthFromRemoteServerMetadata

Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>

---------

Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Radoslav Dimitrov <radoslav@stacklok.com>

0 of 39 new or added lines in 1 file covered. (0.0%)

6 existing lines in 3 files now uncovered.

17575 of 37654 relevant lines covered (46.67%)

16.05 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
39
27.4
-1.38% cmd/thv/app/run_flags.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
94.29
1.43% pkg/secrets/keyring/composite.go
2
81.62
-0.56% pkg/transport/proxy/httpsse/http_proxy.go
3
27.4
-1.38% cmd/thv/app/run_flags.go
Jobs
ID Job ID Ran Files Coverage
1 18496289564.1 14 Oct 2025 12:25PM UTC 284
46.67
GitHub Action Run
Source Files on build 18496289564
  • Tree
  • List 284
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18496289564
  • 47e5fd8c on github
  • Prev Build on main (#18496014573)
  • Next Build on main (#18496861528)
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