Count lines of code excluding #[cfg(test)]

Hi,

I'm looking for a way to count the lines of code in a project excluding test-related code, i.e., code attributed with #[cfg(test)].

How would I do that?

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.