count logical lines of code in Ubuntu

I am working on a web application and I need to be able to keep track of php, css, html and JavaScript lines of code within the /var/www directory.

But using the terminal lines of code counter, I naturally feel like writing more lines and spacing out code like:

if($var == $other)echo("hi");

would be done as:

if($var == $other)
{
    echo("hi");
}

In this way I can come up with a very high number of lines without actually doing any real work, is there any way I can count the logical lines of code in the directory? Is there any program that can do so?

Thanks!

Leave a Reply

*

Hire Me
Follow Me!
Search
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.
Categories