Why is it that “rake stats” doesn’t count lines in views?
For example, I just ran
find app/views -name “*rhtml” -exec wc -l {} ;
in a recent Rails app directory, and got a total count that was about
80% as large as the Total LOC result reported by “rake stats”. A fair
number of those lines were just as hard to write as anything in my
models or controllers:-)
Is there something I’m missing, or is “rake stats” biased toward showing
how efficient Rails code is by making it look unrealistically compact?
–Al Evans