[daily-code-metrics] Daily Code Metrics Report - 2026-05-16 #32684
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 #32877. |
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.
-
Key metrics today: LOC: 1,495,015 | Quality score: 82.1/100 (Good) | Test ratio: 2.10 | Active source files (7d): 1,161
Overview
The codebase continued steady growth this week, adding ~65k lines net (4.55% in 7d, 18.4% in 30d). Quality score is 82.1/100 (Good) — improving from yesterday's 82/100 and recovering from the dip earlier this week. Test coverage and comment density remain strong (full marks), while churn stability (9.5/15) and code organization (14.6/25) are the main drags due to high weekly churn (1,161 files modified) and a growing count of files over 500 LOC (now 328, +16% in 30 days).
📊 Visualizations
LOC Distribution by Language
Go Tests dominate at 27% of LOC (403k), followed by YAML configuration at 25.8% (mostly generated
.lock.ymlworkflow files). Go Source is only 12.9% (192k) — the codebase is heavily test- and config-weighted, reflecting a mature CI/agentic workflow project.Top Directories by LOC
pkg/remains the largest directory at 42.6% of code (629k lines)..github/workflows/is second at 31.2% (461k) — most of this is compiled.lock.ymloutput.actions/(15.4%) anddocs/(5.5%) round out the top four.Quality Score Breakdown
Maxed out on Test Coverage (30/30) and Comment Density (10/10). Documentation scores 18/20 (code-to-docs ratio 2.95, slightly above ideal 1.5-2.0). Code Organization (14.6/25) is the largest gap — driven by 328 files over 500 LOC. Churn Stability (9.5/15) reflects 1,161 files modified in 7 days (~25% of the codebase touched).
Test Coverage Analysis
Test-to-source ratio sits at 2.10 — well above the recommended 0.5-1.0 band and into "high coverage" territory. The ratio has drifted slightly downward over 30 days (-3.9%), as source LOC is growing faster (+15.9% in 30d) than test LOC (+11.5%). Worth monitoring but not urgent.
Code Churn (Last 7 Days)
Top churn drivers (source code only,
*.lock.ymlexcluded):pkg/agentdrain/data/default_weights.json(+4,502/-1,146) is a data file regenerating frequently.pkg/cli/forecast.go(+1,150/-8) is a substantial new feature.README.mdhad a major restructure (+189/-956 net deletion). Forecast specs and autocomplete data are active areas.Historical Trends (30 Days)
Total LOC climbed steadily from ~1.26M to ~1.50M (+18.4%). Test-to-source ratio drifted from 2.18 down to 2.10. Quality score has been volatile (range 62-92) — the recent dip reflected churn spikes during the forecast feature rollout; scoring has now stabilized around 82.
📈 Detailed Metrics
Size Metrics
Lines of Code by Language
Lines of Code by Directory
Quality Indicators
Test Coverage
test_lines_of_code): 403,649test_to_source_ratio): 2.097Code Churn (Last 7 Days)
Source Code Churn (Excludes *.lock.yml)
Most Active Source Files
pkg/agentdrain/data/default_weights.json: +4,502 / -1,146docs/public/editor/autocomplete-data.json: +1,911 / -954scripts/aw_yield_precompute.py: +1,337 / -27actions/setup/js/create_pull_request.test.cjs: +1,290 / -83pkg/cli/forecast.go: +1,150 / -8docs/src/content/docs/reference/forecast-specification.md: +1,046 / -41actions/setup/js/create_pull_request.cjs: +695 / -410actions/setup/js/send_otlp_span.test.cjs: +670 / -14specs/safe-output-outcome-evaluation.md: +658 / -22README.md: +189 / -956Workflow Lock File Churn (*.lock.yml only)
Note: Lock file churn is reported separately and excluded from quality score calculations to avoid noise from generated files.
Workflow Metrics
total_workflows): 317Documentation
Quality Score: 82.1/100 (Good)
Component Breakdown
💡 Insights & Recommendations
pkg/cli/forecast.go(+1,150 lines this week — likely now a large file), and any new spec/JSON files growing without bound.pkg/agentdrainandpkg/cli/forecastadd tests proportionally.default_weights.jsonandautocomplete-data.jsonaccount for ~7,500 lines of weekly churn. Consider whether these belong in git or could move to release artifacts to reduce repo bloat.pkg/cli/forecast.go(+1,150),forecast-specification.md(+1,046), andaw_yield_precompute.py(+1,337) suggest a major new feature landing. Ensure documentation, tests, and CHANGELOG entries keep pace.References:
Report generated by Daily Code Metrics workflow
Historical data: 26 days tracked | Last updated: 2026-05-16 UTC
Beta Was this translation helpful? Give feedback.
All reactions