XAMPPRocky / tokei

Count your code, quickly.
Other
10.51k stars 504 forks source link

Add the ability to exclude test code/custom blocks #1068

Open jwodder opened 4 months ago

jwodder commented 4 months ago

I am of the opinion that test code in source files (e.g., in Rust, code in #[cfg(test)] blocks) should not count towards a project's LOC, but tokei doesn't seem to support excluding such code from its counts. I therefore request a feature like one of the following:

Related issue: #948 (Seems to be more about adding a separate count for test code)