-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
countingRelated to line counting logicRelated to line counting logicenhancementNew feature or requestNew feature or request
Description
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 . 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
--detailedflag enables this mode; default behavior remains total line count only
Acceptance criteria
-
--detailedflag enables blank/code/comment breakdown - Supports comment syntax for at least 5 common languages
- Falls back to total lines only for unrecognized extensions
- Works with all output formats (table, JSON, summary)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
countingRelated to line counting logicRelated to line counting logicenhancementNew feature or requestNew feature or request