Daily Code Metrics Report - 2026-03-22 #22261
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 #22417. |
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 codebase has 674,434 total LOC across 3,508 files as of 2026-03-22. The quality score stands at 73/100 (Good) — a 6-point dip from yesterday's 79, driven primarily by reduced documentation coverage (docs/MD at 39K LOC vs ~42K prior) and continued moderate churn (823 source files modified, 323 commits in 7 days). The positive news: test coverage remains excellent at a 2.26x test-to-source ratio with 951 test files and 313K test LOC.
Go remains the dominant language with 452K LOC (source + tests), representing ~67% of the codebase. The
pkg/directory dominates at 476K LOC across 1,813 files, followed by.github/(303K),actions/(152K). Today's churn shows notable new test files and a newexpression_validation.gorefactoring, consistent with the active workflow compiler development.📊 Visualizations
LOC Distribution by Language
Go (source + tests) accounts for 452K LOC (~67% of all code), with Markdown documentation at 181K lines. The heavy test LOC (313K) relative to source (139K) reflects a test-first culture with 2.26x coverage ratio.
Top Directories by LOC
pkg/is the clear center of gravity at 476K LOC, reflecting the library-first architecture..github/(303K) andactions/(152K) together represent 455K LOC — a significant portion devoted to workflow automation infrastructure.Quality Score Breakdown
Test Coverage scores a perfect 30/30. Code Organization (16/25) reflects 238 large files (>500 LOC, 15.3% ratio) — a perennial challenge at this codebase size. Documentation (13/20) is the biggest opportunity: the code-to-docs ratio of 11.5:1 suggests that API/reference docs haven't kept pace with code growth.
Test Coverage Analysis
Test-to-source ratio is stable at 2.26x across the past 14 days, consistently well above the 2.0x target. With 951 test files and 313K test LOC, the testing infrastructure is robust.
Code Churn (Last 7 Days)
Top churn is led by new
specs/artifacts.md(+7,148 lines) andscratchpad/artifacts.md(+5,561 lines) — new specification documents. Active test additions (expression_optimizer_test.go+1,210,top_level_github_app_import_test.go+837) and a schema update (+737/-308 formain_workflow_schema.json) round out the most active files. Lock files (177 modified) are tracked separately and excluded from quality scoring.Historical Trends (30 Days)
Total LOC shows a modest recalibration today (-29K) from yesterday's 703K peak, reflecting refined measurement methodology (excluding package-lock.json from docs). The quality score trend shows a decline from the 80-81 peak in mid-March (Mar 14-17) back to 73 today — primarily attributable to documentation coverage changes.
📈 Detailed Metrics
Size Metrics
Lines of Code by Language
Lines of Code by Directory
Quality Indicators
Test Coverage
test_lines_of_code): 313,783 linestest_to_source_ratio): 2.26Code Churn (Last 7 Days)
Source Code Churn (Excludes *.lock.yml)
Most Active Source Files
specs/artifacts.md: +7,148/-0 linesscratchpad/artifacts.md: +5,561/-0 linesREADME.md: +1,003/-477 linespkg/workflow/expression_optimizer_test.go: +1,210/-0 linespkg/parser/schemas/main_workflow_schema.json: +737/-308 linespkg/workflow/top_level_github_app_import_test.go: +837/-0 linesscratchpad/github-mcp-access-control-specification.md: +675/-69 lines.github/workflows/daily-safe-output-integrator.md: +739/-0 linespkg/workflow/expression_validation.go: +0/-715 linespkg/cli/compile_integration_test.go: +680/-2 linesWorkflow 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): 239 filesDocumentation
Quality Score: 73/100
Component Breakdown
💡 Insights & Recommendations
Documentation Gap: The code-to-docs ratio of 11.47:1 is the primary driver pulling the quality score below 80. With Go source at 138K LOC and docs at only 39K markdown lines, consider prioritizing API reference documentation for the most active packages (
pkg/workflow/,pkg/cli/).Expression Layer Refactoring: The deletion of
pkg/workflow/expression_validation.go(715 lines) paired with new test additions (expression_optimizer_test.go+1,210) suggests an ongoing validation/optimization refactor — worth monitoring for completeness in the next 2-3 days.Large File Count Growing: 238 files exceed 500 LOC (up from 211 on Mar 2). As the
pkg/directory grows, consider splitting the largest files — particularly inpkg/workflow/andpkg/cli/which contain many large integration test files.Artifacts Specification Added: Two large new files (
specs/artifacts.md7,148 LOC,scratchpad/artifacts.md5,561 LOC) were added this week. Once finalized, the scratchpad version should be consolidated intospecs/ordocs/to avoid duplication.Lock File Churn Improving: Lock file net change is -14,212 lines (deletions > additions), suggesting workflow consolidation or cleanup — a healthy trend reducing compiled workflow bloat.
Report generated by Daily Code Metrics workflow | §23402180617
Historical data: 18 days (2026-03-02 → 2026-03-22) | Generated: 2026-03-22 UTC
Beta Was this translation helpful? Give feedback.
All reactions