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

CyberDuck79 / duckfile / 18097400734
80%
main: 80%

Build:
Build:
LAST BUILD BRANCH: fix/sonarqube-code-quality-issues
DEFAULT BRANCH: main
Ran 29 Sep 2025 12:45PM UTC
Jobs 1
Files 26
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

29 Sep 2025 12:44PM UTC coverage: 79.503% (-0.03%) from 79.529%
18097400734

Pull #70

github

CyberDuck79
refactor: eliminate code duplication and reduce cognitive complexity

- Extract PrepareTemplateResult creation into helper function
- Add getTargetCacheDir() and getBaseTemplateName() helpers to reduce duplication
- Break down prepareAndRenderTemplate (21→≤15) by extracting:
  - validateSecurityAndResolveTemplate() for security validation logic
  - prepareTemplateWorkflow() for template preparation steps
- Replace duplicate cache directory computations with helper calls
- Replace duplicate template name extractions with helper calls

Reduces code duplication from 14.2% to significantly lower levels while
maintaining identical functionality and full test coverage.
Pull Request #70: Phase 2: Implement separated targets and remotes configurations

589 of 689 new or added lines in 9 files covered. (85.49%)

26 existing lines in 5 files now uncovered.

2754 of 3464 relevant lines covered (79.5%)

11.28 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
74.19
-6.76% internal/run/checksum.go
4
89.15
0.38% cmd/duck/root.go
5
89.52
-2.31% cmd/duck/list.go
5
82.69
-1.87% internal/run/sync.go
6
83.91
-0.41% internal/run/paths.go
12
82.63
3.37% internal/config/config.go
12
54.29
-21.58% internal/run/clean.go
17
79.39
-2.43% internal/run/remote.go
37
85.86
0.66% internal/config/security.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
85.86
0.66% internal/config/security.go
1
82.69
-1.87% internal/run/sync.go
2
74.19
-6.76% internal/run/checksum.go
9
79.39
-2.43% internal/run/remote.go
13
54.29
-21.58% internal/run/clean.go
Jobs
ID Job ID Ran Files Coverage
1 18097400734.1 29 Sep 2025 12:45PM UTC 26
79.5
GitHub Action Run
Source Files on build 18097400734
  • Tree
  • List 26
  • Changed 9
  • Source Changed 0
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #70
  • PR Base - main (#17681231410)
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

© 2025 Coveralls, Inc