Summary
Extend line counting to distinguish between blank lines, comment lines, and code lines. This gives users a more detailed picture of their codebase composition.
Example
Code Blank Comment File
────── ───── ─────── ─────────────────
120 20 12 src/walker.rs
70 10 7 src/counter.rs
────── ───── ─────── ─────────────────
190 30 19 total (2 files)
Considerations
- Comment syntax varies by language — would need a comment definition table for common languages
- Could start with a small set (Rust, Python, JS/TS, Go, C/C++, Java) and expand over time
--detailed flag enables this mode; default behavior remains total line count only
Acceptance criteria
Summary
Extend line counting to distinguish between blank lines, comment lines, and code lines. This gives users a more detailed picture of their codebase composition.
Example
kount --detailed .Considerations
--detailedflag enables this mode; default behavior remains total line count onlyAcceptance criteria
--detailedflag enables blank/code/comment breakdown