You might enjoy having a look at https://github.com/AlDanial/cloc
It can distinguish between actual lines of code, comments and empty lines for a lot of different languages.
It can distinguish between actual lines of code, comments and empty lines for a lot of different languages.
It's the same as cloc, but ludicrously fast.