Created
October 3, 2012 14:33
-
-
Save michaelfeathers/3827233 to your computer and use it in GitHub Desktop.
Code volume
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A poor man's complexity measure for a file or group of files | |
puts ARGF.lines.grep(/^([ \t]*)/) { $1 }.map(&:length).reduce(0, :+) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment