For HTML, CSS and JavaScript files, what's a good tool to run in source directories and get KSLOC?
wc -l - good start.
wc -l
grep -v -P "^\s*$" -R dir/ | wc -l
Gives you a line count that ignores blank lines.