Yardstick static analysis report sorted by which JavaScript files have the highest ratio of comments to code.

find . -name *js -type f | xargs yardstick | sort -k6 -n
The number on the far right is ratio of comments to code, expressed as a percentage. For the rest of the Yardstick documentation see https://github.com/calmh/yardstick/blob/master/README.md#reported-metrics
Sample Output
map.js                                   4   0   13   4     31
  anon@0                                 1   0    3   1     33
conf.js                                  0   0    3   1     33
not_found.js                             1   0    3   1     33
circle_droppable.js                      7   0   38  17     45
  anon@50                                1   0    4   3     75
circle_default.js                        0   0    3   4    133
routes.js                                0   0    3   9    300

What Others Think

Hey, I encountered the same error in javascript, this problem was very serious for me at the time. While watching the video on YouTube, I found a way to solve the problem. Here you can get edubirdie.com some admirable skill. We recommend that you visit YouTube to resolve these errors.
NadiaJ · 29 weeks and 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: