Skip to content

Add line count (loc) to TreeNode and JSON output#14

Merged
max-leuthaeuser merged 1 commit intomasterfrom
max/loc2Json
Jun 25, 2025
Merged

Add line count (loc) to TreeNode and JSON output#14
max-leuthaeuser merged 1 commit intomasterfrom
max/loc2Json

Conversation

@max-leuthaeuser
Copy link
Collaborator

  • Introduces a countLines utility to SyntaxParser to compute the number of lines in source files, handling all common line endings. The resulting line count is stored in the TreeNode as the new loc property and included in the generated JSON.
  • Adds a test to verify correct line count extraction.

Introduces a countLines utility to SyntaxParser to compute the number of lines in source files, handling all common line endings. The resulting line count is stored in the TreeNode as the new 'loc' property and included in the generated JSON. Adds a test to verify correct line count extraction.
@max-leuthaeuser max-leuthaeuser merged commit d00585d into master Jun 25, 2025
3 checks passed
@max-leuthaeuser max-leuthaeuser deleted the max/loc2Json branch June 25, 2025 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant