[daily-code-metrics] Daily Code Metrics Report - 2026-05-20 #33617
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 #33845. |
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,525,191 | Quality score: 73/100 (Good) | Test ratio: 2.07 | Active source files (7d): 1,266
The codebase grew +3.42% (7d) and +20.79% (30d), with the bulk of new lines landing in Go source, YAML workflows, and JavaScript CJS action handlers. Quality score improved from 62 → 73 over the last 7 days (driven by recovered organization and comment density scores), but documentation coverage and churn stability remain the weakest components and warrant attention.
📊 Visualizations
Size Overview (LOC by Language & Top Directories)
Go tests (26.9%) and YAML workflows (25.8%) dominate the codebase, with Go source itself at only 13%. Directory-wise,
pkg/(42.7%) and.github/workflows/(30.9%) account for nearly three-quarters of all lines — a structure consistent with a code-generation-heavy agentic-workflow toolchain.Quality Score Breakdown
Test Coverage is perfect (30/30) and Comment Density is near-perfect (9/10). The gaps live in Code Organization (12/25) — driven by 340 files over 500 LOC — and Documentation (13/20), where code-to-docs ratio is ~6.6:1 versus a 3:1 ideal.
Test Coverage Analysis
Test LOC (410,090) is more than 2× source LOC (197,968), well above the recommended band. The ratio dropped slightly (-1.52% 7d) as source grew faster than tests this week.
Code Churn (Last 7 Days)
The most-churned source files are dominated by JS action handlers (
actions/setup/js/*.cjs) and Go workflow code inpkg/workflow/. The top file (main_workflow_schema.json) saw nearly equal adds/deletes (+2,971/-2,992) — a refactor rather than growth. Generated*.lock.ymlfiles are excluded.Historical Trends (30 Days)
Total LOC has trended steadily upward (+20.8% over 30 days). Test-to-source ratio is gradually compressing (2.18 → 2.07) but remains healthy. Quality score has recovered strongly in the last week after dipping mid-period.
📈 Detailed Metrics
Size Metrics
Lines of Code by Language
Lines of Code by Directory
Quality Indicators
Test Coverage
test_lines_of_code): 410,090 linestest_to_source_ratio): 2.071Code Churn (Last 7 Days)
Source Code Churn (Excludes *.lock.yml)
Most Active Source Files
pkg/parser/schemas/main_workflow_schema.json: +2,971 / -2,992actions/setup/js/create_pull_request.test.cjs: +1,023 / -87pkg/workflow/gh_cli_permissions_test.go: +1,016 / -91docs/public/editor/autocomplete-data.json: +850 / -1,072actions/setup/js/create_pull_request.cjs: +837 / -458pkg/workflow/testdata/TestWasmGolden_AllEngines/claude.golden: +703 / -2actions/setup/js/send_otlp_span.test.cjs: +671 / -23pkg/workflow/testdata/TestWasmGolden_AllEngines/codex.golden: +674 / -2pkg/workflow/safe_output_handlers.go: +667 / -0actions/setup/js/safe_outputs_handlers.test.cjs: +622 / -55Workflow 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
.md) (total_workflows): 276 files.lock.yml): 233 files.md)Documentation
Quality Score: 73/100 (Good)
Component Breakdown
💡 Insights & Recommendations
pkg/workflow/and the largeractions/setup/js/*.cjshandlers for splits; this is the single biggest drag on the quality score (-13 points)..tsfiles were intentionally removed/migrated or if the count reflects a directory move that should be tracked elsewhere.pkg/workflow/safe_output_handlers.go(+667/-0) and severalactions/setup/js/*.cjsfiles show very high one-directional adds. Consider whether these merit dedicated review or modularization.References
Report generated by Daily Code Metrics workflow
Historical data: 30 days | Last updated: 2026-05-20 19:21 UTC
Beta Was this translation helpful? Give feedback.
All reactions