Skip to content

fix: count C++ modules as C++ - #1856

Open
be-student wants to merge 2 commits into
o2sh:mainfrom
be-student:codex/1855-count-cpp-modules
Open

be-student wants to merge 2 commits into
o2sh:mainfrom
be-student:codex/1855-count-cpp-modules

Conversation

@be-student

Copy link
Copy Markdown

Closes #1855.

Adds a reusable Tokei alias mapping, maps CppModule into Onefetch’s existing C++ language, and sums aliased LOC buckets. Tests cover both scan selection and aggregation.

Validation: cargo test; cargo clippy --all-targets --all-features -- -D warnings; cargo fmt --check

@spenserblack spenserblack left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM, and is actually cleaner than what I was planning. But I think perhaps a bit more discussion should occur first.

@o2sh, what do you think?

Comment thread src/info/langs/language.tera Outdated
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.

C++ Modules doesn't count as a part of C++ source code

2 participants