[daily-code-metrics] Daily Code Metrics Report - 2026-04-13 #26093
Closed
Replies: 1 comment
-
|
This discussion has been marked as outdated by Daily Code Metrics and Trend Tracking Agent. A newer discussion is available at Discussion #26300. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The
gh-awcodebase continues its strong growth trajectory with 1,031,201 total LOC across all languages, up from 922,816 the previous day (+11.7%). The Go codebase remains healthy with an exceptional test-to-source ratio of 2.17x, indicating significantly more test code than source code — a mark of a well-tested project. The overall quality score stands at 76/100, with perfect marks on test coverage and good documentation, but with code organization and churn stability as areas for attention.The most notable observation this run is the very high source code churn over the last 7 days: 713 source files modified across 297 commits, with +44,384 / -14,650 lines changed. This is active and healthy development, though the volume drives down the churn stability component of the quality score. Lock file churn (192
.lock.ymlfiles, +62,152/-48,383 lines) has been excluded from quality calculations to avoid noise from generated workflow artifacts.📊 Visualizations
LOC Distribution by Language
Go dominates at 503,655 LOC (49%), followed by YAML at 275,773 (27%) and Markdown at 194,710 (19%). The large YAML footprint reflects the extensive workflow automation infrastructure.
Top Directories by LOC
docs/leads at 1,009,331 LOC (all file types), followed bypkg/at 531,472 andactions/at 181,994. Thepkg/directory is the primary source of Go code and tests.Quality Score Breakdown
Total quality score: 76/100. Test coverage maxes out at 30/30. Code organization scores 17/25 due to 274 files exceeding 500 LOC. Documentation scores 14/20. Churn stability is 8/15 reflecting the active development pace.
Test Coverage Analysis
344,875 test LOC vs 158,780 source LOC — a 2.17x test-to-source ratio. This places the codebase firmly in the "Excellent" tier. 1,006 test files covering 675 source files.
Code Churn (Last 7 Days)
Most active source files (excluding
*.lock.yml):pkg/agentdrain/data/default_weights.json(1,980 lines changed), new files inactions/setup/js/test suite, and newpkg/workflow/qmd.go(644 lines added). New test files dominate additions.Historical Trends (30 Days)
Total LOC has grown steadily from ~713K on 2026-04-02 to ~1,031K today (+44.6% in 11 days). Test-to-source ratio has been consistently stable at 2.15–2.18x, indicating disciplined test discipline during rapid growth.
📈 Detailed Metrics
Size Metrics
Lines of Code by Language
Lines of Code by Directory
Quality Indicators
Test Coverage
test_lines_of_code): 344,875 linestest_to_source_ratio): 2.17x ⬆️Code Churn (Last 7 Days)
Source Code Churn (Excludes *.lock.yml)
Most Active Source Files
pkg/agentdrain/data/default_weights.json: +940/-1,040 lines.github/workflows/functional-pragmatist.md: +62/-846 linespkg/cli/compile_safe_update_integration_test.go: +560 lines (new)actions/setup/js/qmd_index.test.cjs: +508 lines (new)docs/functional-patterns.md: +476 lines (new)actions/setup/js/resolve_host_repo.test.cjs: +459 lines (new)actions/setup/js/cleanup_cache_memory.test.cjs: +442 lines (new)actions/setup/js/upload_artifact.cjs: +409 lines (new)Workflow Lock File Churn (*.lock.yml only)
Workflow Metrics
total_workflows): 261 filesDocumentation
docs/Quality Score: 76/100
Component Breakdown
💡 Insights & Recommendations
Reduce large file count (274 files >500 LOC): Consider splitting large test files, some of which exceed 2,800 lines. These reduce the code organization score and make navigation harder. Focus on files like
pkg/workflow/compiler_jobs_test.go(2,817 lines).Churn stability is high: 713 source files modified in 7 days signals active development but warrants attention. Review whether all changes are intentional or if automated tools/code generation contribute noise.
Comment ratio is moderate at 10.5%: Public API functions in the
cmd/andpkg/directories could benefit from better documentation comments to improve discoverability and maintainability.Rapid LOC growth (+44.6% in 11 days): The dramatic codebase expansion is largely driven by documentation and workflow infrastructure additions. Monitor whether
pkg/source growth remains proportional to added functionality.JS test coverage expanding: Multiple new
.test.cjsfiles were added this week foractions/setup/js/. This is a positive trend, extending the same rigorous testing culture from Go to the JavaScript action layer.Report generated by Daily Code Metrics workflow | Run §24368062285
Historical data: 12 days tracked | Last updated: 2026-04-13 21:42 UTC
Beta Was this translation helpful? Give feedback.
All reactions